CreateAccount constructor

const CreateAccount({
  1. bool isSignInEnabled = false,
  2. bool isUsernameEnabled = false,
  3. bool isEmailEnabled = true,
  4. bool isPasswordEnabled = false,
  5. bool useSafeArea = true,
  6. List<SocialAuthProviderElement> socialAuthProviders = const [],
  7. AutovalidateMode autoValidateMode = AutovalidateMode.onUserInteraction,
  8. TextEditingController? emailController,
  9. TextEditingController? passwordController,
  10. RegExp? emailRegExp,
  11. RegExp? passwordRegExp,
  12. String? emailInvalidText,
  13. String? passwordInvalidText,
  14. EdgeInsets? contentPadding,
  15. void onCreateAccountTap()?,
  16. void onSignUpTap()?,
  17. void onPasswordRecoveryTap()?,
  18. void onPrivacyPolicyTap()?,
  19. void onTermsAndConditionTap()?,
  20. ButtonStyle? signInGuestButtonStyle,
  21. ButtonStyle? signInButtonStyle,
  22. TextStyle? eMailLabelStyle,
  23. TextStyle? eMailTextStyle,
  24. StrutStyle? eMailStrutStyle,
  25. dynamic eMailOnChanged(
    1. String
    )?,
  26. GestureTapCallback? eMailOnTap,
  27. Widget? eMailPrefixIcon,
  28. TextStyle? passwordLabelStyle,
  29. TextStyle? passwordTextStyle,
  30. StrutStyle? passwordStrutStyle,
  31. dynamic passwordOnChanged(
    1. String
    )?,
  32. GestureTapCallback? passwordOnTap,
  33. Widget? passwordPrefixIcon,
  34. String pageTitle = 'Create Account',
  35. String createAccountButtonText = 'Create Account',
  36. String alreadyHaveAnAccountText = 'Already have an account?',
  37. String signInButtonText = 'Sign In',
  38. String agreeWithText = 'By proceeding, you agree with',
  39. String privacyPolicyText = 'Privacy Policy',
  40. String termsAndConditionText = 'Terms and Conditions',
  41. String andText = 'and',
  42. String? emptyEmailText,
  43. String? emptyPasswordText,
  44. 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,
});