ChatInputField class Null safety

Inheritance

Constructors

ChatInputField({Key? key, double height = 70, required String sendMessageHintText, required String recordinNoteHintText, Widget sliderButtonContent = const Icon(Icons.chevron_right, color: Colors.white, size: 25), IconData sendTextIcon = Icons.send, required VoidCallback onSlideToCancelRecord, dynamic handleRecord(String? path, bool cnaceled)?, dynamic onSubmit(String? text)?, required TextEditingController textController, required dynamic handleImageSelect(XFile), required Color containerColor, required String imageAttachmentFromGalary, required String imageAttachmentFromCamery, required String imageAttachmentCancelText, required Color imageAttachmentTextColor, required bool disableInput})

Properties

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 handle the selected image
final
handleRecord → (dynamic Function?(String? path, bool cnaceled)?)
function to handle the recorded audio
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
height double
Height of the slider. Defaults to 70.
final
imageAttachmentCancelText String
texts shown wen trying to chose image attachment cancel text
final
imageAttachmentFromCamery String
texts shown wen trying to chose image attachment from camera
final
imageAttachmentFromGalary String
texts shown wen trying to chose image attachment from galary
final
imageAttachmentTextColor Color
image attachment text color
final
isText bool
read / write
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
onSlideToCancelRecord VoidCallback
The callback when slider is completed. This is the only required field.
final
onSubmit → (dynamic Function?(String? text)?)
The callback when send is pressed.
final
recordinNoteHintText String
hit text to be shown for recording voice note
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sendMessageHintText String
hint text to be shown for sending messages
final
sendTextIcon IconData
The Icon showed to send a text
final
sliderButtonContent Widget
The button widget used on the moving element of the slider. Defaults to Icon(Icons.chevron_right).
final
textController TextEditingController
final
width double?
read / write

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() State<StatefulWidget>
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
@nonVirtual, inherited