From 97b38e75a576bd797101d54a251cee7442212260 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Wed, 10 Sep 2025 08:36:11 +0200 Subject: [PATCH] disable autocorrect for address by default --- app/lib/presentation/widgets/auto_suggest_text_field.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/lib/presentation/widgets/auto_suggest_text_field.dart b/app/lib/presentation/widgets/auto_suggest_text_field.dart index 9736f29c..d26ff106 100644 --- a/app/lib/presentation/widgets/auto_suggest_text_field.dart +++ b/app/lib/presentation/widgets/auto_suggest_text_field.dart @@ -49,6 +49,7 @@ class AutoSuggestTextField extends HookWidget { final bool? enableIMEPersonalizedLearning; final TapRegionCallback? onTapOutside; final VoidCallback? onTap; + final bool autocorrect; const AutoSuggestTextField({ super.key, @@ -77,6 +78,7 @@ class AutoSuggestTextField extends HookWidget { this.enableIMEPersonalizedLearning = true, this.onTapOutside, this.onTap, + this.autocorrect = false, }); bool _suggestionHasMatch() => @@ -216,6 +218,7 @@ class AutoSuggestTextField extends HookWidget { onChanged: onChanged, onEditingComplete: onEditingComplete, validator: validator, + autocorrect: autocorrect, onFieldSubmitted: onSubmitted.mapNotNull( (onSubmitted) => (value) { if (_suggestionHasMatch()) {