AnimatedLogin constructor
const
AnimatedLogin({
- LoginViewTheme? loginDesktopTheme,
- LoginViewTheme? loginMobileTheme,
- LoginTexts? loginTexts,
- List<
SocialLogin> ? socialLogins, - LoginCallback? onLogin,
- SignupCallback? onSignup,
- ForgotPasswordCallback? onForgotPassword,
- GlobalKey<
FormState> ? formKey, - bool checkError = true,
- @Deprecated('Instead prefer to use componentOrder to not show some parts.') bool showForgotPassword = true,
- @Deprecated('Instead prefer to use componentOrder to not show some parts.') bool showChangeActionTitle = true,
- bool showPasswordVisibility = true,
- ValidatorModel? nameValidator,
- ValidatorModel? emailValidator,
- ValidatorModel? passwordValidator,
- bool validateName = true,
- bool validateEmail = true,
- bool validatePassword = true,
- bool validateCheckbox = true,
- TextEditingController? nameController,
- TextEditingController? emailController,
- TextEditingController? passwordController,
- TextEditingController? confirmPasswordController,
- String? backgroundImage,
- Widget? logo,
- SignUpModes signUpMode = SignUpModes.both,
- List<
LanguageOption> languageOptions = const <LanguageOption>[], - ChangeLanguageCallback? changeLanguageCallback,
- LanguageOption? selectedLanguage,
- ChangeLangOnPressedCallback? changeLangOnPressed,
- AuthMode? initialMode,
- AuthModeChangeCallback? onAuthModeChange,
- VoidCallback? changeLangDefaultOnPressed,
- Widget? privacyPolicyChild,
- ValueChanged<
bool?> ? checkboxCallback, - Key? key,
Default constructor for AnimatedLogin.
Implementation
const AnimatedLogin({
this.loginDesktopTheme,
this.loginMobileTheme,
this.loginTexts,
this.socialLogins,
this.onLogin,
this.onSignup,
this.onForgotPassword,
this.formKey,
this.checkError = true,
@Deprecated('Instead prefer to use componentOrder to not show some parts.')
this.showForgotPassword = true,
@Deprecated('Instead prefer to use componentOrder to not show some parts.')
this.showChangeActionTitle = true,
this.showPasswordVisibility = true,
this.nameValidator,
this.emailValidator,
this.passwordValidator,
this.validateName = true,
this.validateEmail = true,
this.validatePassword = true,
this.validateCheckbox = true,
this.nameController,
this.emailController,
this.passwordController,
this.confirmPasswordController,
this.backgroundImage,
this.logo,
this.signUpMode = SignUpModes.both,
this.languageOptions = const <LanguageOption>[],
this.changeLanguageCallback,
this.selectedLanguage,
this.changeLangOnPressed,
this.initialMode,
this.onAuthModeChange,
this.changeLangDefaultOnPressed,
this.privacyPolicyChild,
this.checkboxCallback,
Key? key,
}) : assert(
(changeLanguageCallback != null &&
languageOptions.length != 0 &&
selectedLanguage != null) ||
(changeLanguageCallback == null &&
languageOptions.length == 0 &&
selectedLanguage == null),
'''To use change language button, you should provide both callback and language options.''',
),
super(key: key);