ZIMKitMessageInput class

Inheritance

Constructors

ZIMKitMessageInput({Key? key, required String conversationID, required ZIMKitRecordStatus recordStatus, ZIMConversationType conversationType = ZIMConversationType.peer, void onMessageSent(ZIMKitMessage)?, ZIMKitMessageListPageEvents? events, FutureOr<ZIMKitMessage> preMessageSending(ZIMKitMessage)?, TextEditingController? editingController, bool showPickFileButton = true, bool showPickMediaButton = true, bool showMoreButton = true, bool showRecordButton = true, List<ZIMKitMessageInputAction>? actions = const [], InputDecoration? inputDecoration, ThemeData? theme, void onMediaFilesPicked(BuildContext context, List<PlatformFile> files, Function defaultAction)?, Widget? sendButtonWidget, Widget? pickMediaButtonWidget, Widget? pickFileButtonWidget, FocusNode? inputFocusNode, BoxDecoration? inputBackgroundDecoration, EdgeInsetsGeometry? containerPadding, Decoration? containerDecoration, TextInputType? keyboardType, int? maxLines, int? minLines, TextInputAction? textInputAction, TextCapitalization? textCapitalization})
const

Properties

actions List<ZIMKitMessageInputAction>?
To add your own action, use the actions parameter like this:
final
containerDecoration Decoration?
The default config is
final
containerPadding EdgeInsetsGeometry?
The default config is
final
conversationID String
The conversationID of the conversation to send message.
final
conversationType ZIMConversationType
The conversationType of the conversation to send message.
final
editingController TextEditingController?
The TextEditingController to use. if not provided, a default one will be created.
final
events ZIMKitMessageListPageEvents?
events
final
hashCode int
The hash code for this object.
no setterinherited
inputBackgroundDecoration BoxDecoration?
final
inputDecoration InputDecoration?
The TextField's decoration.
final
inputFocusNode FocusNode?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
default is TextInputType.multiline
final
maxLines int?
final
minLines int?
final
onMediaFilesPicked → (void Function(BuildContext context, List<PlatformFile> files, Function defaultAction)?)
final
onMessageSent → (void Function(ZIMKitMessage)?)
Called when a message is sent.
final
pickFileButtonWidget Widget?
final
pickMediaButtonWidget Widget?
final
preMessageSending → (FutureOr<ZIMKitMessage> Function(ZIMKitMessage)?)
Called before a message is sent.
final
recordStatus ZIMKitRecordStatus
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendButtonWidget Widget?
final
showMoreButton bool
By default, ZIMKitMessageInput will show a button to pop more. If you don't want to show this button, set showMoreButton to false.
final
showPickFileButton bool
By default, ZIMKitMessageInput will show a button to pick file. If you don't want to show this button, set showPickFileButton to false.
final
showPickMediaButton bool
By default, ZIMKitMessageInput will show a button to pick media. If you don't want to show this button, set showPickMediaButton to false.
final
showRecordButton bool
By default, ZIMKitMessageInput will show a button to record. If you don't want to show this button, set showRecordButton to false.
final
textCapitalization TextCapitalization?
final
textInputAction TextInputAction?
final
theme ThemeData?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ZIMKitMessageInput>
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