ChatScreen class

Inheritance

Constructors

ChatScreen({Key? key, Color? senderColor, Color? inActiveAudioSliderColor, Color? activeAudioSliderColor, required List<ChatMessage> messages, ScrollController? scrollController, String sendMessageHintText = 'Enter message here', String recordinNoteHintText = 'Now Recording', String imageAttachmentFromGalary = 'From Galary', String imageAttachmentFromCamery = 'From Camera', String imageAttachmentCancelText = 'Cancel', Color containerColor = const Color(0xFFCFD8DC), Color imageAttachmentTextColor = const Color(0xFF255965), dynamic handleRecord(String? path, bool cnaceled)?, dynamic handleImageSelect(XFile)?, VoidCallback? onSlideToCancelRecord, TextEditingController? textEditingController, bool disableInput = false, dynamic onSubmit(String? text)?})

Properties

activeAudioSliderColor Color?
color of the active part of the audio slider
final
containerColor Color
the color of the outer container and the color used to hide the text on slide
final
disableInput bool
use this flag to disable the input
final
handleImageSelect → (dynamic Function(XFile)?)
function to handel image selection
final
handleRecord → (dynamic Function(String? path, bool cnaceled)?)
function to handel sucessful recordings, bass to override
final
hashCode int
The hash code for this object.
no setterinherited
imageAttachmentCancelText String
final
imageAttachmentFromCamery String
final
imageAttachmentFromGalary String
texts shown wen trying to chose image attachment
final
imageAttachmentTextColor Color
final
inActiveAudioSliderColor Color?
color of the inactive part of the audio slider
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
messages List<ChatMessage>
required the list of chat messages
final
onSlideToCancelRecord VoidCallback?
to handel canceling of the record
final
onSubmit → (dynamic Function(String? text)?)
handel text message on submit
final
recordinNoteHintText String
hint text to be shown for recording voice note
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
scrollcontroller for the chat screen
final
senderColor Color?
color of all message containers if its belongs to the user
final
sendMessageHintText String
hint text to be shown for sending messages
final
textEditingController TextEditingController?
TextEditingController to handel input text
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _ChatScreenState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited