Make the title optional on the ForgotPasswordForm

A title is not always required.
For example sometimes you'd want to put the title in an appbar outside the form instead.
This commit is contained in:
Bart Ribbers 2022-12-02 14:57:27 +01:00
parent 92a1af6d72
commit 21deb0e821

View file

@ -7,15 +7,15 @@ class ForgotPasswordForm extends StatefulWidget {
const ForgotPasswordForm({ const ForgotPasswordForm({
super.key, super.key,
required this.options, required this.options,
required this.title,
required this.description, required this.description,
required this.onRequestForgotPassword, required this.onRequestForgotPassword,
this.title,
this.initialEmail, this.initialEmail,
}); });
final LoginOptions options; final LoginOptions options;
final Widget title; final Widget? title;
final Widget description; final Widget description;
final String? initialEmail; final String? initialEmail;