From 05d145a011ec770e8c0236fc134819b98870d70d Mon Sep 17 00:00:00 2001 From: Rene Floor Date: Tue, 24 Mar 2026 16:23:47 +0100 Subject: [PATCH] add missing inputfield properties --- .../message_composer_input.dart | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/packages/stream_core_flutter/lib/src/components/message_composer/message_composer_input.dart b/packages/stream_core_flutter/lib/src/components/message_composer/message_composer_input.dart index 4908481..47601b1 100644 --- a/packages/stream_core_flutter/lib/src/components/message_composer/message_composer_input.dart +++ b/packages/stream_core_flutter/lib/src/components/message_composer/message_composer_input.dart @@ -76,14 +76,43 @@ class StreamMessageComposerInputField extends StatelessWidget { this.focusNode, this.command, this.onDismissCommand, + this.textInputAction, + this.keyboardType, + this.textCapitalization = TextCapitalization.sentences, + this.autofocus = false, + this.autocorrect = true, }); + /// The controller for the text field. final TextEditingController controller; + + /// The placeholder text shown when the field is empty. final String placeholder; + + /// The focus node for the text field. final FocusNode? focusNode; + + /// The active command label displayed as a chip. final String? command; + + /// Called when the user dismisses the command chip. final VoidCallback? onDismissCommand; + /// The type of action button to use for the keyboard. + final TextInputAction? textInputAction; + + /// The type of keyboard to use for editing the text. + final TextInputType? keyboardType; + + /// {@macro flutter.widgets.editableText.textCapitalization} + final TextCapitalization textCapitalization; + + /// Whether the text field should be focused initially. + final bool autofocus; + + /// Whether to enable autocorrect. + final bool autocorrect; + @override Widget build(BuildContext context) { final composerBorderRadius = context.streamRadius.xxxl; @@ -111,6 +140,11 @@ class StreamMessageComposerInputField extends StatelessWidget { child: TextField( controller: controller, focusNode: focusNode, + textInputAction: textInputAction, + keyboardType: keyboardType, + textCapitalization: textCapitalization, + autofocus: autofocus, + autocorrect: autocorrect, style: TextStyle( color: inputTheme.textColor ?? inputDefaults.textColor, ),