fix: Autofillhints on readonly
This commit is contained in:
parent
ba42c577f9
commit
072d65b46d
3 changed files with 6 additions and 4 deletions
|
|
@ -148,9 +148,10 @@ class _SignUpPasswordState extends State<SignUpPassword> {
|
|||
controller: passwordController,
|
||||
obscureText: !showPassword,
|
||||
autofocus: true,
|
||||
readOnly: loading,
|
||||
autocorrect: false,
|
||||
onSubmitted: (t) => _signUpAction(context),
|
||||
autofillHints: [AutofillHints.newPassword],
|
||||
autofillHints: loading ? null : [AutofillHints.newPassword],
|
||||
decoration: InputDecoration(
|
||||
prefixIcon: Icon(Icons.lock_outlined),
|
||||
hintText: '****',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue