fix(mobile): login screen disable auto-correct input fields (#48)

Fixes #27

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-10-19 15:52:49 +02:00 committed by GitHub
parent 90610bea9f
commit da9e0423c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,6 +296,7 @@ class _LoginPageState extends ConsumerState<LoginScreen> {
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<LoginScreen> {
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<LoginScreen> {
autoFillHints: const [AutofillHints.password],
keyboardType: TextInputType.visiblePassword,
focusNode: focusNode,
autocorrect: false,
textInputAction: TextInputAction.send,
onSubmitted: (value) => enterCredentialsTryLogin?.call(),
onChanged: (value) => setState(() {}),