CreateAccount constructor
const
CreateAccount({
- bool isSignInEnabled = false,
- bool isUsernameEnabled = false,
- bool isEmailEnabled = true,
- bool isPasswordEnabled = false,
- bool useSafeArea = true,
- List<
SocialAuthProviderElement> socialAuthProviders = const [], - AutovalidateMode autoValidateMode = AutovalidateMode.onUserInteraction,
- TextEditingController? emailController,
- TextEditingController? passwordController,
- RegExp? emailRegExp,
- RegExp? passwordRegExp,
- String? emailInvalidText,
- String? passwordInvalidText,
- EdgeInsets? contentPadding,
- Widget? logo,
- void onCreateAccountTap()?,
- void onSignUpTap()?,
- void onPasswordRecoveryTap()?,
- void onPrivacyPolicyTap()?,
- void onTermsAndConditionTap()?,
- ButtonStyle? signInGuestButtonStyle,
- ButtonStyle? signInButtonStyle,
- TextStyle? eMailLabelStyle,
- TextStyle? eMailTextStyle,
- StrutStyle? eMailStrutStyle,
- dynamic eMailOnChanged()?,
- GestureTapCallback? eMailOnTap,
- Widget? eMailPrefixIcon,
- TextStyle? passwordLabelStyle,
- TextStyle? passwordTextStyle,
- StrutStyle? passwordStrutStyle,
- dynamic passwordOnChanged()?,
- GestureTapCallback? passwordOnTap,
- Widget? passwordPrefixIcon,
- String pageTitle = 'Create Account',
- String createAccountButtonText = 'Create Account',
- String alreadyHaveAnAccountText = 'Already have an account?',
- String signInButtonText = 'Sign In',
- String agreeWithText = 'By proceeding, you agree with',
- String privacyPolicyText = 'Privacy Policy',
- String termsAndConditionText = 'Terms and Conditions',
- String andText = 'and',
- String? emptyEmailText,
- String? emptyPasswordText,
- Key? key,
Implementation
const CreateAccount({
this.isSignInEnabled = false,
this.isUsernameEnabled = false,
this.isEmailEnabled = true,
this.isPasswordEnabled = false,
this.useSafeArea = true,
this.socialAuthProviders = const [],
this.autoValidateMode = AutovalidateMode.onUserInteraction,
this.emailController,
this.passwordController,
this.emailRegExp,
this.passwordRegExp,
this.emailInvalidText,
this.passwordInvalidText,
this.contentPadding,
this.logo,
this.onCreateAccountTap,
this.onSignUpTap,
this.onPasswordRecoveryTap,
this.onPrivacyPolicyTap,
this.onTermsAndConditionTap,
this.signInGuestButtonStyle,
this.signInButtonStyle,
this.eMailLabelStyle,
this.eMailTextStyle,
this.eMailStrutStyle,
this.eMailOnChanged,
this.eMailOnTap,
this.eMailPrefixIcon,
this.passwordLabelStyle,
this.passwordTextStyle,
this.passwordStrutStyle,
this.passwordOnChanged,
this.passwordOnTap,
this.passwordPrefixIcon,
this.pageTitle = 'Create Account',
this.createAccountButtonText = 'Create Account',
this.alreadyHaveAnAccountText = 'Already have an account?',
this.signInButtonText = 'Sign In',
this.agreeWithText = 'By proceeding, you agree with',
this.privacyPolicyText = 'Privacy Policy',
this.termsAndConditionText = 'Terms and Conditions',
this.andText = 'and',
this.emptyEmailText,
this.emptyPasswordText,
super.key,
});