NiceLoginForm constructor

const NiceLoginForm({
  1. Key? key,
  2. required Future<void> onLogin(
    1. String email,
    2. String password
    ),
  3. VoidCallback? onForgotPassword,
  4. VoidCallback? onSignUp,
  5. List<String> oauthProviders = const [],
  6. void onOAuth(
    1. String provider
    )?,
  7. String title = 'Sign In',
  8. bool showRememberMe = true,
  9. String emailLabel = 'Email',
  10. String passwordLabel = 'Password',
  11. bool loading = false,
  12. String? error,
})

Implementation

const NiceLoginForm({
  super.key,
  required this.onLogin,
  this.onForgotPassword,
  this.onSignUp,
  this.oauthProviders = const [],
  this.onOAuth,
  this.title = 'Sign In',
  this.showRememberMe = true,
  this.emailLabel = 'Email',
  this.passwordLabel = 'Password',
  this.loading = false,
  this.error,
  this.logo,
});