ChatInputField class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- ChatInputField
Constructors
- ChatInputField({Key? key, double buttonRadios = 35, required String sendMessageHintText, required String recordingNoteHintText, TextDirection textDirection = TextDirection.rtl, BoxDecoration? chatInputFieldDecoration, Widget sliderButtonContent = const Icon(Icons.chevron_right, color: Colors.white, size: 25), IconData sendTextIcon = Icons.send, required VoidCallback onSlideToCancelRecord, required dynamic handleRecord(ChatMessage? audioMessage, bool canceled), required dynamic onTextSubmit(ChatMessage text), required dynamic handleImageSelect(ChatMessage? imageMessage), required Color chatInputFieldColor, required String imageAttachmentFromGalleryText, required String imageAttachmentFromCameraText, required String imageAttachmentCancelText, required bool disableInput, EdgeInsets? chatInputFieldPadding, Icon? imageAttachmentFromGalleryIcon, Icon? imageAttachmentFromCameraIcon, Icon? imageAttachmentCancelIcon, TextStyle? imageAttachmentTextStyle, dynamic attachmentClick(BuildContext context)?})
Properties
- attachmentClick → dynamic Function(BuildContext context)?
-
this is an optional parameter to override the default attachment bottom sheet
final
-
Height of the slider. Defaults to 70.
final
- chatInputFieldColor → Color
-
the color of the outer container and the color used to hide
the text on slide
final
- chatInputFieldDecoration → BoxDecoration?
-
final
- chatInputFieldPadding → EdgeInsets?
-
final
- disableInput → bool
-
use this flag to disable the input
final
- handleImageSelect → dynamic Function(ChatMessage? imageMessage)
-
function to handle the selected image
final
- handleRecord → dynamic Function(ChatMessage? audioMessage, bool canceled)
-
function to handle the recorded audio
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageAttachmentCancelIcon → Icon?
-
Icon shown wen trying to chose image attachment cancel text
final
- imageAttachmentCancelText → String
-
text shown wen trying to chose image attachment cancel text
final
- imageAttachmentFromCameraIcon → Icon?
-
Icon shown wen trying to chose image attachment from camera
final
- imageAttachmentFromCameraText → String
-
text shown wen trying to chose image attachment from camera
final
- imageAttachmentFromGalleryIcon → Icon?
-
Icon shown wen trying to chose image attachment from gallery
final
- imageAttachmentFromGalleryText → String
-
text shown wen trying to chose image attachment from gallery
final
- imageAttachmentTextStyle → TextStyle?
-
image attachment text style
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onSlideToCancelRecord → VoidCallback
-
The callback when slider is completed. This is the only required field.
final
- onTextSubmit → dynamic Function(ChatMessage text)
-
The callback when send is pressed.
final
- recordingNoteHintText → String
-
hit text to be shown for recording voice note
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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
- textDirection → TextDirection
-
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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, int wrapWidth = 65}) → 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