RistoTextField.email constructor
RistoTextField.email({
- Key? key,
- TextEditingController? controller,
- String? title,
- String? hint,
- String? validator()?,
- void onChanged()?,
- void onSubmitted()?,
- FocusNode? focusNode,
- EdgeInsetsGeometry? margin,
- double borderRadius = 12.0,
- bool horizontalLayout = false,
- Color? fillColor,
- Color? borderColor,
- Color? focusedBorderColor,
- EdgeInsetsGeometry? contentPadding,
- double? fieldHeight,
Implementation
factory RistoTextField.email({
Key? key,
TextEditingController? controller,
String? title,
String? hint,
String? Function(String?)? validator,
void Function(String)? onChanged,
void Function(String)? onSubmitted,
FocusNode? focusNode,
EdgeInsetsGeometry? margin,
double borderRadius = 12.0,
bool horizontalLayout = false,
Color? fillColor,
Color? borderColor,
Color? focusedBorderColor,
EdgeInsetsGeometry? contentPadding,
double? fieldHeight,
}) {
return RistoTextField(
key: key,
controller: controller,
title: title ?? 'Email',
hint: hint ?? 'example@email.com',
keyboardType: TextInputType.emailAddress,
innerLeading: const Icon(Icons.email_outlined),
validator: validator,
onChanged: onChanged,
onSubmitted: onSubmitted,
focusNode: focusNode,
margin: margin,
borderRadius: borderRadius,
horizontalLayout: horizontalLayout,
fillColor: fillColor,
borderColor: borderColor,
focusedBorderColor: focusedBorderColor,
contentPadding: contentPadding,
fieldHeight: fieldHeight,
counterText: '',
);
}