From da9e0423c8e406c95958a2304f5048cdc95e41fd Mon Sep 17 00:00:00 2001 From: PartyDonut <42371342+PartyDonut@users.noreply.github.com> Date: Sat, 19 Oct 2024 15:52:49 +0200 Subject: [PATCH] fix(mobile): login screen disable auto-correct input fields (#48) Fixes #27 Co-authored-by: PartyDonut --- lib/screens/login/login_screen.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/screens/login/login_screen.dart b/lib/screens/login/login_screen.dart index 781f9ed..5e99a49 100644 --- a/lib/screens/login/login_screen.dart +++ b/lib/screens/login/login_screen.dart @@ -296,6 +296,7 @@ class _LoginPageState extends ConsumerState { onSubmitted: (value) => retrieveListOfUsers(), autoFillHints: const [AutofillHints.url], keyboardType: TextInputType.url, + autocorrect: false, textInputAction: TextInputAction.go, label: context.localized.server, errorText: (invalidUrl == null || serverTextController.text.isEmpty || !startCheckingForErrors) @@ -347,6 +348,7 @@ class _LoginPageState extends ConsumerState { controller: usernameController, autoFillHints: const [AutofillHints.username], textInputAction: TextInputAction.next, + autocorrect: false, onChanged: (value) => setState(() {}), label: context.localized.userName, ), @@ -355,6 +357,7 @@ class _LoginPageState extends ConsumerState { autoFillHints: const [AutofillHints.password], keyboardType: TextInputType.visiblePassword, focusNode: focusNode, + autocorrect: false, textInputAction: TextInputAction.send, onSubmitted: (value) => enterCredentialsTryLogin?.call(), onChanged: (value) => setState(() {}),