From 21deb0e821831a1cd74f6e578d02bca9c6608882 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Fri, 2 Dec 2022 14:57:27 +0100 Subject: [PATCH] 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. --- lib/src/widgets/forgot_password_form.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/widgets/forgot_password_form.dart b/lib/src/widgets/forgot_password_form.dart index 2cc59f8..634cc52 100644 --- a/lib/src/widgets/forgot_password_form.dart +++ b/lib/src/widgets/forgot_password_form.dart @@ -7,15 +7,15 @@ class ForgotPasswordForm extends StatefulWidget { const ForgotPasswordForm({ super.key, required this.options, - required this.title, required this.description, required this.onRequestForgotPassword, + this.title, this.initialEmail, }); final LoginOptions options; - final Widget title; + final Widget? title; final Widget description; final String? initialEmail;