ChatInputToolbar class

Inheritance

Constructors

ChatInputToolbar({Key? key, TextDirection textDirection = TextDirection.ltr, FocusNode? focusNode, ScrollController? scrollController, String? text, TextInputAction? textInputAction, bool sendOnEnter = false, dynamic onTextChange(String)?, bool inputDisabled = false, TextEditingController? controller, List<Widget> leading = const [], List<Widget> trailling = const [], InputDecoration? inputDecoration, TextCapitalization? textCapitalization, TextStyle? inputTextStyle, BoxDecoration? inputContainerStyle, int inputMaxLines = 1, bool showInputCursor = true, int? maxInputLength, double inputCursorWidth = 2.0, Color? inputCursorColor, dynamic onSend(ChatMessage)?, bool reverse = false, required ChatUser user, bool alwaysShowSend = false, String messageIdGenerator()?, Widget inputFooterBuilder()?, Widget sendButtonBuilder(Function)?, bool showTraillingBeforeSend = true, EdgeInsets inputToolbarPadding = const EdgeInsets.all(0.0), EdgeInsets inputToolbarMargin = const EdgeInsets.all(0.0)})

Properties

alwaysShowSend bool
final
controller TextEditingController?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
inputContainerStyle BoxDecoration?
final
inputCursorColor Color?
final
inputCursorWidth double
final
inputDecoration InputDecoration?
final
inputDisabled bool
final
inputFooterBuilder → (Widget Function()?)
final
inputMaxLines int
final
inputTextStyle TextStyle?
final
inputToolbarMargin EdgeInsets
final
inputToolbarPadding EdgeInsets
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading List<Widget>
final
maxInputLength int?
final
messageIdGenerator → (String Function()?)
final
onSend → (dynamic Function(ChatMessage)?)
final
onTextChange → (dynamic Function(String)?)
final
reverse bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollController ScrollController?
final
sendButtonBuilder → (Widget Function(Function)?)
final
sendOnEnter bool
final
showInputCursor bool
final
showTraillingBeforeSend bool
final
text String?
final
textCapitalization TextCapitalization?
final
textDirection TextDirection
final
textInputAction TextInputAction?
final
trailling List<Widget>
final
user ChatUser
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}) 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