fix: Autofillhints on readonly
This commit is contained in:
parent
ba42c577f9
commit
072d65b46d
3 changed files with 6 additions and 4 deletions
|
|
@ -92,10 +92,11 @@ class _SignUpState extends State<SignUp> {
|
|||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
child: TextField(
|
||||
readOnly: loading,
|
||||
autocorrect: false,
|
||||
controller: usernameController,
|
||||
onSubmitted: (s) => signUpAction(context),
|
||||
autofillHints: [AutofillHints.newUsername],
|
||||
autofillHints: loading ? null : [AutofillHints.newUsername],
|
||||
decoration: InputDecoration(
|
||||
prefixIcon: Icon(Icons.account_circle_outlined),
|
||||
hintText: L10n.of(context).username,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue