Skip to content

Commit

Permalink
fix(mobile) Disable autocorrection on endpoint URL (immich-app#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Dec 22, 2022
1 parent 2459eab commit d3bc92c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mobile/lib/modules/login/ui/login_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -233,6 +234,7 @@ class ServerEndpointInput extends StatelessWidget {
focusNode: focusNode,
autofillHints: const [AutofillHints.url],
keyboardType: TextInputType.url,
autocorrect: false,
);
}
}
Expand Down

0 comments on commit d3bc92c

Please sign in to comment.