From 5c26657c2238a7318eff8f43b10b4303faa5c6e0 Mon Sep 17 00:00:00 2001 From: Avion Date: Fri, 29 Apr 2022 13:25:02 -0700 Subject: [PATCH] fix:Disable autocorrect in homeserver search field --- lib/pages/search/search.dart | 10 +++++----- pubspec.yaml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/pages/search/search.dart b/lib/pages/search/search.dart index 72fa41e4..b579c560 100644 --- a/lib/pages/search/search.dart +++ b/lib/pages/search/search.dart @@ -63,11 +63,11 @@ class SearchController extends State { cancelLabel: L10n.of(context)!.cancel, textFields: [ DialogTextField( - prefixText: 'https://', - hintText: Matrix.of(context).client.homeserver?.host, - initialText: server, - keyboardType: TextInputType.url, - ) + prefixText: 'https://', + hintText: Matrix.of(context).client.homeserver?.host, + initialText: server, + keyboardType: TextInputType.url, + autocorrect: false) ]); if (newServer == null) return; Store().setItem(_serverStoreNamespace, newServer.single); diff --git a/pubspec.yaml b/pubspec.yaml index 8e2e8750..88ffe67c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,7 +7,7 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - adaptive_dialog: ^1.3.0 + adaptive_dialog: ^1.5.1 adaptive_theme: ^2.3.1 animations: ^2.0.2 blurhash_dart: ^1.1.0