From d3bc92c3f89dda6e000e978d70ffa619147d6a06 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 22 Dec 2022 14:29:48 -0600 Subject: [PATCH] fix(mobile) Disable autocorrection on endpoint URL (#1166) --- mobile/lib/modules/login/ui/login_form.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mobile/lib/modules/login/ui/login_form.dart b/mobile/lib/modules/login/ui/login_form.dart index 3e1f99ae5f..f9c5368347 100644 --- a/mobile/lib/modules/login/ui/login_form.dart +++ b/mobile/lib/modules/login/ui/login_form.dart @@ -94,7 +94,7 @@ class LoginForm extends HookConsumerWidget { child: ConstrainedBox( constraints: const BoxConstraints(maxWidth: 300), child: SingleChildScrollView( - child: AutofillGroup ( + child: AutofillGroup( child: Wrap( spacing: 16, runSpacing: 16, @@ -172,9 +172,10 @@ class LoginForm extends HookConsumerWidget { horizontal: 16.0, ), child: Divider( - color: Brightness.dark == Theme.of(context).brightness - ? Colors.white - : Colors.black, + color: + Brightness.dark == Theme.of(context).brightness + ? Colors.white + : Colors.black, ), ), OAuthLoginButton( @@ -233,6 +234,7 @@ class ServerEndpointInput extends StatelessWidget { focusNode: focusNode, autofillHints: const [AutofillHints.url], keyboardType: TextInputType.url, + autocorrect: false, ); } }