Skip to content

Commit ad66666

Browse files
fix(auth): ForgotPasswordScreen display email within input box (#336)
1 parent 955e5c2 commit ad66666

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: packages/firebase_ui_auth/lib/src/widgets/email_form.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,14 @@ class _SignInFormContentState extends State<_SignInFormContent> {
277277
onPressed: () {
278278
final navAction =
279279
FirebaseUIAction.ofType<ForgotPasswordAction>(context);
280+
final email = widget.email ?? emailCtrl.text;
280281

281282
if (navAction != null) {
282-
navAction.callback(context, emailCtrl.text);
283+
navAction.callback(context, email);
283284
} else {
284285
showForgotPasswordScreen(
285286
context: context,
286-
email: emailCtrl.text,
287+
email: email,
287288
auth: widget.auth,
288289
);
289290
}

0 commit comments

Comments
 (0)