emailFormField static method
Widget
emailFormField({
- String? label,
- TextEditingController? controller,
- FormFieldValidator<
String> ? validator, - AutovalidateMode validateMode = AutovalidateMode.disabled,
- String hint = 'Enter your email',
- Icon? icon,
- bool obscureText = false,
- TextInputType inputType = TextInputType.text,
- EdgeInsets padding = paddingStepOne,
- EdgeInsets margin = paddingStepOne,
Implementation
static Widget emailFormField(
{String? label,
TextEditingController? controller,
FormFieldValidator<String>? validator,
AutovalidateMode validateMode = AutovalidateMode.disabled,
String hint = 'Enter your email',
Icon? icon,
bool obscureText = false,
TextInputType inputType = TextInputType.text,
EdgeInsets padding = paddingStepOne,
EdgeInsets margin = paddingStepOne}) =>
textFormField(
label: label,
controller: _emailController,
validator: Validators.validateEmail,
icon: icon ??
Icon(
Icons.email,
color: AppColors.textColor,
size: iconSizeSmall,
));