mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-13 17:30:31 -07:00
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:
parent
90610bea9f
commit
da9e0423c8
1 changed files with 3 additions and 0 deletions
|
|
@ -296,6 +296,7 @@ class _LoginPageState extends ConsumerState<LoginScreen> {
|
||||||
onSubmitted: (value) => retrieveListOfUsers(),
|
onSubmitted: (value) => retrieveListOfUsers(),
|
||||||
autoFillHints: const [AutofillHints.url],
|
autoFillHints: const [AutofillHints.url],
|
||||||
keyboardType: TextInputType.url,
|
keyboardType: TextInputType.url,
|
||||||
|
autocorrect: false,
|
||||||
textInputAction: TextInputAction.go,
|
textInputAction: TextInputAction.go,
|
||||||
label: context.localized.server,
|
label: context.localized.server,
|
||||||
errorText: (invalidUrl == null || serverTextController.text.isEmpty || !startCheckingForErrors)
|
errorText: (invalidUrl == null || serverTextController.text.isEmpty || !startCheckingForErrors)
|
||||||
|
|
@ -347,6 +348,7 @@ class _LoginPageState extends ConsumerState<LoginScreen> {
|
||||||
controller: usernameController,
|
controller: usernameController,
|
||||||
autoFillHints: const [AutofillHints.username],
|
autoFillHints: const [AutofillHints.username],
|
||||||
textInputAction: TextInputAction.next,
|
textInputAction: TextInputAction.next,
|
||||||
|
autocorrect: false,
|
||||||
onChanged: (value) => setState(() {}),
|
onChanged: (value) => setState(() {}),
|
||||||
label: context.localized.userName,
|
label: context.localized.userName,
|
||||||
),
|
),
|
||||||
|
|
@ -355,6 +357,7 @@ class _LoginPageState extends ConsumerState<LoginScreen> {
|
||||||
autoFillHints: const [AutofillHints.password],
|
autoFillHints: const [AutofillHints.password],
|
||||||
keyboardType: TextInputType.visiblePassword,
|
keyboardType: TextInputType.visiblePassword,
|
||||||
focusNode: focusNode,
|
focusNode: focusNode,
|
||||||
|
autocorrect: false,
|
||||||
textInputAction: TextInputAction.send,
|
textInputAction: TextInputAction.send,
|
||||||
onSubmitted: (value) => enterCredentialsTryLogin?.call(),
|
onSubmitted: (value) => enterCredentialsTryLogin?.call(),
|
||||||
onChanged: (value) => setState(() {}),
|
onChanged: (value) => setState(() {}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue