Skip to content

Commit 76aee8c

Browse files
committed
fix(auth): Fix login autofill on login
1 parent 02ebcfe commit 76aee8c

File tree

1 file changed

+5
-4
lines changed
  • packages/authenticator/amplify_authenticator/lib/src/widgets

1 file changed

+5
-4
lines changed

packages/authenticator/amplify_authenticator/lib/src/widgets/form.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,12 @@ class AuthenticatorFormState<T extends AuthenticatorForm>
167167

168168
@override
169169
Widget build(BuildContext context) {
170-
final formKey = InheritedAuthenticatorState
171-
.of(context)
172-
.formKey;
170+
final formKey = InheritedAuthenticatorState.of(context).formKey;
173171
if (widget.child != null) {
174-
return Form(key: formKey, child: AutofillGroup(child: widget.child!));
172+
return Form(
173+
key: formKey,
174+
child: AutofillGroup(child: widget.child!),
175+
);
175176
}
176177

177178
final runtimeActions = this.runtimeActions(context);

0 commit comments

Comments
 (0)