mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-10 22:19:30 +01:00
fix: Autofillhints on readonly
This commit is contained in:
parent
d553685dea
commit
baafebb5f9
@ -180,7 +180,7 @@ class _LoginState extends State<Login> {
|
|||||||
autofocus: true,
|
autofocus: true,
|
||||||
onChanged: (t) => _checkWellKnownWithCoolDown(t, context),
|
onChanged: (t) => _checkWellKnownWithCoolDown(t, context),
|
||||||
controller: usernameController,
|
controller: usernameController,
|
||||||
autofillHints: [AutofillHints.username],
|
autofillHints: loading ? null : [AutofillHints.username],
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
prefixIcon: Icon(Icons.account_box_outlined),
|
prefixIcon: Icon(Icons.account_box_outlined),
|
||||||
hintText:
|
hintText:
|
||||||
@ -194,7 +194,7 @@ class _LoginState extends State<Login> {
|
|||||||
child: TextField(
|
child: TextField(
|
||||||
readOnly: loading,
|
readOnly: loading,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
autofillHints: [AutofillHints.password],
|
autofillHints: loading ? null : [AutofillHints.password],
|
||||||
controller: passwordController,
|
controller: passwordController,
|
||||||
obscureText: !showPassword,
|
obscureText: !showPassword,
|
||||||
onSubmitted: (t) => login(context),
|
onSubmitted: (t) => login(context),
|
||||||
|
@ -92,10 +92,11 @@ class _SignUpState extends State<SignUp> {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
readOnly: loading,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
controller: usernameController,
|
controller: usernameController,
|
||||||
onSubmitted: (s) => signUpAction(context),
|
onSubmitted: (s) => signUpAction(context),
|
||||||
autofillHints: [AutofillHints.newUsername],
|
autofillHints: loading ? null : [AutofillHints.newUsername],
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
prefixIcon: Icon(Icons.account_circle_outlined),
|
prefixIcon: Icon(Icons.account_circle_outlined),
|
||||||
hintText: L10n.of(context).username,
|
hintText: L10n.of(context).username,
|
||||||
|
@ -148,9 +148,10 @@ class _SignUpPasswordState extends State<SignUpPassword> {
|
|||||||
controller: passwordController,
|
controller: passwordController,
|
||||||
obscureText: !showPassword,
|
obscureText: !showPassword,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
|
readOnly: loading,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
onSubmitted: (t) => _signUpAction(context),
|
onSubmitted: (t) => _signUpAction(context),
|
||||||
autofillHints: [AutofillHints.newPassword],
|
autofillHints: loading ? null : [AutofillHints.newPassword],
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
prefixIcon: Icon(Icons.lock_outlined),
|
prefixIcon: Icon(Icons.lock_outlined),
|
||||||
hintText: '****',
|
hintText: '****',
|
||||||
|
Loading…
Reference in New Issue
Block a user