autofill should work now

This commit is contained in:
doman 2023-07-30 15:37:11 +02:00
parent 64703dbc67
commit 9807db52ae
2 changed files with 73 additions and 68 deletions

View file

@ -105,6 +105,7 @@ class _LoginScreen extends State<LoginScreen> {
child: Container( child: Container(
constraints: const BoxConstraints(maxWidth: 600), constraints: const BoxConstraints(maxWidth: 600),
padding: const EdgeInsets.all(10), padding: const EdgeInsets.all(10),
child: AutofillGroup(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
@ -149,6 +150,7 @@ class _LoginScreen extends State<LoginScreen> {
), ),
), ),
), ),
),
); );
} }
} }

View file

@ -90,6 +90,7 @@ class _RegisterScreen extends State<RegisterScreen> {
child: Container( child: Container(
constraints: const BoxConstraints(maxWidth: 600), constraints: const BoxConstraints(maxWidth: 600),
padding: const EdgeInsets.all(10), padding: const EdgeInsets.all(10),
child: AutofillGroup(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
@ -114,6 +115,7 @@ class _RegisterScreen extends State<RegisterScreen> {
labelText: 'Confirm password', labelText: 'Confirm password',
), ),
controller: passwordConfirmController, controller: passwordConfirmController,
autofillHints: const [AutofillHints.password],
onFieldSubmitted: (_) => _register() onFieldSubmitted: (_) => _register()
), ),
Padding( Padding(
@ -127,6 +129,7 @@ class _RegisterScreen extends State<RegisterScreen> {
), ),
), ),
), ),
),
); );
} }
} }