autofill should work now
This commit is contained in:
parent
64703dbc67
commit
9807db52ae
2 changed files with 73 additions and 68 deletions
|
@ -105,6 +105,7 @@ class _LoginScreen extends State<LoginScreen> {
|
|||
child: Container(
|
||||
constraints: const BoxConstraints(maxWidth: 600),
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: AutofillGroup(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
|
@ -149,6 +150,7 @@ class _LoginScreen extends State<LoginScreen> {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,6 +90,7 @@ class _RegisterScreen extends State<RegisterScreen> {
|
|||
child: Container(
|
||||
constraints: const BoxConstraints(maxWidth: 600),
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: AutofillGroup(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
|
@ -114,6 +115,7 @@ class _RegisterScreen extends State<RegisterScreen> {
|
|||
labelText: 'Confirm password',
|
||||
),
|
||||
controller: passwordConfirmController,
|
||||
autofillHints: const [AutofillHints.password],
|
||||
onFieldSubmitted: (_) => _register()
|
||||
),
|
||||
Padding(
|
||||
|
@ -127,6 +129,7 @@ class _RegisterScreen extends State<RegisterScreen> {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue