Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/pages/chat/send_file_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,11 @@ class SendFileDialogState extends State<SendFileDialog> {
controller: _labelTextController,
labelText: L10n.of(context).optionalMessage,
keyboardType: .multiline,
textCapitalization: TextCapitalization.sentences,
spellCheckConfiguration: SpellCheckConfiguration(
spellCheckSuggestionsToolbarBuilder:
(context, state) => const SizedBox.shrink(),
),
maxLength: 4096,
counterText: '',
textInputAction: AppSettings.sendOnEnter.value
Expand Down
6 changes: 6 additions & 0 deletions lib/widgets/adaptive_dialogs/dialog_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class DialogTextField extends StatelessWidget {
final TextInputType? keyboardType;
final int? maxLength;
final bool autocorrect = true;
final TextCapitalization textCapitalization;
final SpellCheckConfiguration? spellCheckConfiguration;
final void Function(String)? onSubmitted;
final TextInputAction? textInputAction;

Expand All @@ -38,6 +40,8 @@ class DialogTextField extends StatelessWidget {
this.errorText,
this.obscureText = false,
this.readOnly = false,
this.textCapitalization = TextCapitalization.none,
this.spellCheckConfiguration = const SpellCheckConfiguration.disabled(),
this.textStyle,
this.textInputAction,
this.onSubmitted,
Expand All @@ -64,6 +68,8 @@ class DialogTextField extends StatelessWidget {
maxLength: maxLength,
keyboardType: keyboardType,
autocorrect: autocorrect,
textCapitalization: textCapitalization,
spellCheckConfiguration: spellCheckConfiguration,
textInputAction: textInputAction,
onSubmitted: onSubmitted,
decoration: InputDecoration(
Expand Down