FlutterLogin constructor
FlutterLogin({
- Key? key,
- SignupCallback? onSignup,
- required LoginCallback onLogin,
- required RecoverCallback onRecoverPassword,
- String? title,
- dynamic logo,
- LoginMessages? messages,
- LoginTheme? theme,
- FormFieldValidator<
String> ? userValidator, - bool? validateUserImmediately,
- FormFieldValidator<
String> ? passwordValidator, - VoidCallback? onSubmitAnimationCompleted,
- String? logoTag,
- LoginUserType userType = LoginUserType.email,
- String? titleTag,
- bool showDebugButtons = false,
- List<
LoginProvider> loginProviders = const <LoginProvider>[], - bool hideForgotPasswordButton = false,
- bool loginAfterSignUp = true,
- bool hideProvidersTitle = false,
- List<
UserFormField> ? additionalSignupFields, - bool disableCustomPageTransformer = false,
- List<
TermOfService> termsOfService = const <TermOfService>[], - ConfirmRecoverCallback? onConfirmRecover,
- ConfirmSignupCallback? onConfirmSignup,
- ConfirmSignupRequiredCallback? confirmSignupRequired,
- SignupCallback? onResendCode,
- String savedEmail = '',
- String savedPassword = '',
- AuthMode initialAuthMode = AuthMode.login,
- List<
Widget> ? children, - bool scrollable = false,
- TextInputType? confirmSignupKeyboardType,
- Widget? headerWidget,
- BeforeAdditionalFieldsCallback? onSwitchToAdditionalFields,
Implementation
FlutterLogin({
super.key,
this.onSignup,
required this.onLogin,
required this.onRecoverPassword,
this.title,
/// The [ImageProvider] or asset path [String] for the logo image to be displayed
dynamic logo,
this.messages,
this.theme,
this.userValidator,
this.validateUserImmediately,
this.passwordValidator,
this.onSubmitAnimationCompleted,
this.logoTag,
this.userType = LoginUserType.email,
this.titleTag,
this.showDebugButtons = false,
this.loginProviders = const <LoginProvider>[],
this.hideForgotPasswordButton = false,
this.loginAfterSignUp = true,
this.footer,
this.hideProvidersTitle = false,
this.additionalSignupFields,
this.disableCustomPageTransformer = false,
this.navigateBackAfterRecovery = false,
this.termsOfService = const <TermOfService>[],
this.onConfirmRecover,
this.onConfirmSignup,
this.confirmSignupRequired,
this.onResendCode,
this.savedEmail = '',
this.savedPassword = '',
this.initialAuthMode = AuthMode.login,
this.children,
this.scrollable = false,
this.confirmSignupKeyboardType,
this.headerWidget,
this.onSwitchToAdditionalFields,
}) : assert((logo is String?) || (logo is ImageProvider?)),
logo = logo is String ? AssetImage(logo) : logo as ImageProvider?;