NiceLoginForm constructor
const
NiceLoginForm({ - Key? key,
- required Future<void> onLogin(
- String email,
- String password
),
- VoidCallback? onForgotPassword,
- VoidCallback? onSignUp,
- List<String> oauthProviders = const [],
- void onOAuth(
- String provider
)?,
- String title = 'Sign In',
- bool showRememberMe = true,
- String emailLabel = 'Email',
- String passwordLabel = 'Password',
- bool loading = false,
- String? error,
- Widget? logo,
})
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,
});