StreamMessageInput constructor
const
StreamMessageInput({
- Key? key,
- void onMessageSent()?,
- FutureOr<
Message> preMessageSending()?, - double maxHeight = 150,
- int? maxLines,
- int? minLines,
- TextInputAction? textInputAction,
- TextInputType? keyboardType,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- bool disableAttachments = false,
- StreamMessageInputController? messageInputController,
- ActionsBuilder? actionsBuilder,
- double spaceBetweenActions = 8,
- ActionsLocation actionsLocation = ActionsLocation.left,
- AttachmentListBuilder? attachmentListBuilder,
- AttachmentListBuilder? fileAttachmentListBuilder,
- AttachmentListBuilder? mediaAttachmentListBuilder,
- AttachmentItemBuilder? fileAttachmentBuilder,
- AttachmentItemBuilder? mediaAttachmentBuilder,
- FocusNode? focusNode,
- SendButtonLocation sendButtonLocation = SendButtonLocation.outside,
- bool autofocus = false,
- bool hideSendAsDm = false,
- Widget? idleSendButton,
- Widget? activeSendButton,
- bool showCommandsButton = true,
- UserMentionTileBuilder? userMentionsTileBuilder,
- int maxAttachmentSize = kDefaultMaxAttachmentSize,
- ErrorListener? onError,
- int attachmentLimit = 10,
- List<
AttachmentPickerType> allowedAttachmentPickerTypes = AttachmentPickerType.values, - AttachmentLimitExceedListener? onAttachmentLimitExceed,
- AttachmentButtonBuilder? attachmentButtonBuilder,
- CommandButtonBuilder? commandButtonBuilder,
- Iterable<
StreamAutocompleteTrigger> customAutocompleteTriggers = const [], - bool mentionAllAppUsers = false,
- MessageRelatedBuilder? sendButtonBuilder,
- Widget quotedMessageBuilder()?,
- Map<
String, QuotedMessageAttachmentThumbnailBuilder> ? quotedMessageAttachmentThumbnailBuilders, - bool? shouldKeepFocusAfterMessage,
- MessageValidator validator = _defaultValidator,
- String? restorationId,
- bool? enableSafeArea,
- double? elevation,
- BoxShadow? shadow,
- bool autoCorrect = true,
- bool enableMentionsOverlay = true,
- VoidCallback? onQuotedMessageCleared,
- bool enableActionAnimation = true,
- KeyEventPredicate sendMessageKeyPredicate = _defaultSendMessageKeyPredicate,
- KeyEventPredicate clearQuotedMessageKeyPredicate = _defaultClearQuotedMessageKeyPredicate,
- OgPreviewFilter ogPreviewFilter = _defaultOgPreviewFilter,
- HintGetter hintGetter = _defaultHintGetter,
- ContentInsertionConfiguration? contentInsertionConfiguration,
Instantiate a new MessageInput
Implementation
const StreamMessageInput({
super.key,
this.onMessageSent,
this.preMessageSending,
this.maxHeight = 150,
this.maxLines,
this.minLines,
this.textInputAction,
this.keyboardType,
this.textCapitalization = TextCapitalization.sentences,
this.disableAttachments = false,
this.messageInputController,
this.actionsBuilder,
this.spaceBetweenActions = 8,
this.actionsLocation = ActionsLocation.left,
this.attachmentListBuilder,
this.fileAttachmentListBuilder,
this.mediaAttachmentListBuilder,
this.fileAttachmentBuilder,
this.mediaAttachmentBuilder,
this.focusNode,
this.sendButtonLocation = SendButtonLocation.outside,
this.autofocus = false,
this.hideSendAsDm = false,
this.idleSendButton,
this.activeSendButton,
this.showCommandsButton = true,
this.userMentionsTileBuilder,
this.maxAttachmentSize = kDefaultMaxAttachmentSize,
this.onError,
this.attachmentLimit = 10,
this.allowedAttachmentPickerTypes = AttachmentPickerType.values,
this.onAttachmentLimitExceed,
this.attachmentButtonBuilder,
this.commandButtonBuilder,
this.customAutocompleteTriggers = const [],
this.mentionAllAppUsers = false,
this.sendButtonBuilder,
this.quotedMessageBuilder,
this.quotedMessageAttachmentThumbnailBuilders,
this.shouldKeepFocusAfterMessage,
this.validator = _defaultValidator,
this.restorationId,
this.enableSafeArea,
this.elevation,
this.shadow,
this.autoCorrect = true,
this.enableMentionsOverlay = true,
this.onQuotedMessageCleared,
this.enableActionAnimation = true,
this.sendMessageKeyPredicate = _defaultSendMessageKeyPredicate,
this.clearQuotedMessageKeyPredicate =
_defaultClearQuotedMessageKeyPredicate,
this.ogPreviewFilter = _defaultOgPreviewFilter,
this.hintGetter = _defaultHintGetter,
this.contentInsertionConfiguration,
});