ZIMKitMessageInput class
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