From cfc13890163d2c28cb662662c47c2dc3b544a3ba Mon Sep 17 00:00:00 2001 From: Quffik <8903maks127@gmail.com> Date: Fri, 17 Jul 2026 09:14:41 +0300 Subject: [PATCH 1/3] Add: SpellCheck & TextCapitalization in optionalMessage --- lib/pages/chat/send_file_dialog.dart | 2 ++ lib/widgets/adaptive_dialogs/dialog_text_field.dart | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/lib/pages/chat/send_file_dialog.dart b/lib/pages/chat/send_file_dialog.dart index 7f8ced8d0..027190071 100644 --- a/lib/pages/chat/send_file_dialog.dart +++ b/lib/pages/chat/send_file_dialog.dart @@ -476,6 +476,8 @@ class SendFileDialogState extends State { controller: _labelTextController, labelText: L10n.of(context).optionalMessage, keyboardType: .multiline, + textCapitalization: TextCapitalization.sentences, + spellCheckConfiguration: const SpellCheckConfiguration(), maxLength: 4096, counterText: '', textInputAction: AppSettings.sendOnEnter.value diff --git a/lib/widgets/adaptive_dialogs/dialog_text_field.dart b/lib/widgets/adaptive_dialogs/dialog_text_field.dart index b193496bc..ceeeaef58 100644 --- a/lib/widgets/adaptive_dialogs/dialog_text_field.dart +++ b/lib/widgets/adaptive_dialogs/dialog_text_field.dart @@ -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; @@ -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, @@ -64,6 +68,8 @@ class DialogTextField extends StatelessWidget { maxLength: maxLength, keyboardType: keyboardType, autocorrect: autocorrect, + textCapitalization: textCapitalization, + spellCheckConfiguration: spellCheckConfiguration, textInputAction: textInputAction, onSubmitted: onSubmitted, decoration: InputDecoration( From ec5830246b8982344e9db80b06b19efd8347fd28 Mon Sep 17 00:00:00 2001 From: Quffik <8903maks127@gmail.com> Date: Fri, 17 Jul 2026 10:54:59 +0300 Subject: [PATCH 2/3] Run format and import sorter --- lib/pages/chat/send_file_dialog.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pages/chat/send_file_dialog.dart b/lib/pages/chat/send_file_dialog.dart index 027190071..7545f6790 100644 --- a/lib/pages/chat/send_file_dialog.dart +++ b/lib/pages/chat/send_file_dialog.dart @@ -477,7 +477,8 @@ class SendFileDialogState extends State { labelText: L10n.of(context).optionalMessage, keyboardType: .multiline, textCapitalization: TextCapitalization.sentences, - spellCheckConfiguration: const SpellCheckConfiguration(), + spellCheckConfiguration: + const SpellCheckConfiguration(), maxLength: 4096, counterText: '', textInputAction: AppSettings.sendOnEnter.value From 5eaf7309a0ff06ef6dbe773ad6f4f9d1ddff18fa Mon Sep 17 00:00:00 2001 From: Quffik <8903maks127@gmail.com> Date: Thu, 23 Jul 2026 09:20:21 +0300 Subject: [PATCH 3/3] Disable default spell check suggestions toolbar --- lib/pages/chat/send_file_dialog.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat/send_file_dialog.dart b/lib/pages/chat/send_file_dialog.dart index 7545f6790..5e60d5a5d 100644 --- a/lib/pages/chat/send_file_dialog.dart +++ b/lib/pages/chat/send_file_dialog.dart @@ -477,8 +477,10 @@ class SendFileDialogState extends State { labelText: L10n.of(context).optionalMessage, keyboardType: .multiline, textCapitalization: TextCapitalization.sentences, - spellCheckConfiguration: - const SpellCheckConfiguration(), + spellCheckConfiguration: SpellCheckConfiguration( + spellCheckSuggestionsToolbarBuilder: + (context, state) => const SizedBox.shrink(), + ), maxLength: 4096, counterText: '', textInputAction: AppSettings.sendOnEnter.value