AnimatedLogin constructor

const AnimatedLogin({
  1. LoginViewTheme? loginDesktopTheme,
  2. LoginViewTheme? loginMobileTheme,
  3. LoginTexts? loginTexts,
  4. List<SocialLogin>? socialLogins,
  5. LoginCallback? onLogin,
  6. SignupCallback? onSignup,
  7. ForgotPasswordCallback? onForgotPassword,
  8. GlobalKey<FormState>? formKey,
  9. bool checkError = true,
  10. @Deprecated('Instead prefer to use componentOrder to not show some parts.') bool showForgotPassword = true,
  11. @Deprecated('Instead prefer to use componentOrder to not show some parts.') bool showChangeActionTitle = true,
  12. bool showPasswordVisibility = true,
  13. ValidatorModel? nameValidator,
  14. ValidatorModel? emailValidator,
  15. ValidatorModel? passwordValidator,
  16. bool validateName = true,
  17. bool validateEmail = true,
  18. bool validatePassword = true,
  19. bool validateCheckbox = true,
  20. TextEditingController? nameController,
  21. TextEditingController? emailController,
  22. TextEditingController? passwordController,
  23. TextEditingController? confirmPasswordController,
  24. String? backgroundImage,
  25. SignUpModes signUpMode = SignUpModes.both,
  26. List<LanguageOption> languageOptions = const <LanguageOption>[],
  27. ChangeLanguageCallback? changeLanguageCallback,
  28. LanguageOption? selectedLanguage,
  29. ChangeLangOnPressedCallback? changeLangOnPressed,
  30. AuthMode? initialMode,
  31. AuthModeChangeCallback? onAuthModeChange,
  32. VoidCallback? changeLangDefaultOnPressed,
  33. Widget? privacyPolicyChild,
  34. ValueChanged<bool?>? checkboxCallback,
  35. 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);