NiceRegistrationForm constructor
const
NiceRegistrationForm({ - Key? key,
- required Future<void> onRegister(
- Map<String, String> data
),
- VoidCallback? onSignIn,
- String title = 'Create Account',
- List<String> fields = const ['name', 'email', 'password', 'confirmPassword'],
- bool requireTerms = true,
- String termsText = 'I agree to the Terms of Service',
- VoidCallback? onTermsPressed,
- bool loading = false,
- String? error,
- Widget? logo,
- int passwordMinLength = 8,
})
Implementation
const NiceRegistrationForm({
super.key,
required this.onRegister,
this.onSignIn,
this.title = 'Create Account',
this.fields = const ['name', 'email', 'password', 'confirmPassword'],
this.requireTerms = true,
this.termsText = 'I agree to the Terms of Service',
this.onTermsPressed,
this.loading = false,
this.error,
this.logo,
this.passwordMinLength = 8,
});