showForgotPasswordScreen function
Future<void>
showForgotPasswordScreen({
- required BuildContext context,
- FirebaseAuth? auth,
- String? email,
- WidgetBuilder? subtitleBuilder,
Opens a ForgotPasswordScreen.
Implementation
Future<void> showForgotPasswordScreen({
required BuildContext context,
/// {@macro ui.auth.auth_controller.auth}
fba.FirebaseAuth? auth,
/// A email that requires password reset.
String? email,
/// A returned widget would be placed under the title of the screen.
WidgetBuilder? subtitleBuilder,
/// A returned widget would be placed at the bottom.
WidgetBuilder? footerBuilder,
}) async {
final route = createPageRoute(
context: context,
builder: (_) => FirebaseUIActions.inherit(
from: context,
child: ForgotPasswordScreen(
auth: auth,
email: email,
footerBuilder: footerBuilder,
subtitleBuilder: subtitleBuilder,
),
),
);
await Navigator.of(context).push(route);
}