firebase / FirebaseUI-Flutter

Apache License 2.0
107 stars 99 forks source link

fix(auth): `ForgotPasswordScreen` display email within input box #336

Closed russellwheatley closed 6 months ago

russellwheatley commented 6 months ago

Description

If we set the email property like below:

SignInScreen(
            email: 'some@email.com',
            actions: [
              ForgotPasswordAction((context, email) {
                Navigator.pushNamed(
                  context,
                  '/forgot-password',
                  arguments: {'email': email},
                );
              }),
// Rest of setup

We should see it in the ForgotPasswordScreen. Now, it displays correctly:

Screenshot 2024-04-24 at 13 50 31

If we don't, it will still work as previously taking the value from the email input from sign-in screen.

Related Issues

Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?