CustomFormField constructor
const
CustomFormField({
- Key? key,
- Widget? prefixIcon,
- String? hintText,
- String? errorText,
- TextInputType? keyboardType,
- int? maxLines,
- int? minLines,
- void onChanged()?,
- Widget? suffixIcon,
- TextInputAction? inputAction,
- dynamic onFieldSubmitted()?,
- bool readonly = false,
- InputBorder? focusedBorder,
- InputBorder? disabledBorder,
- dynamic onTap()?,
- FocusNode? focusNode,
- TextEditingController? controller,
- String? validator()?,
- bool obscureText = false,
- dynamic onEditingComplete()?,
- TextStyle? style,
- TextAlign? textAlign,
- EdgeInsetsGeometry? contentPadding,
- Color? fillColor,
- bool autoFocus = false,
- int? maxLength,
- dynamic onSuffixPressed()?,
- String? initialValue,
- List<
TextInputFormatter> ? inputFormatters, - bool showCounterText = false,
- AutovalidateMode? autoValidateMode = AutovalidateMode.onUserInteraction,
- bool disableBorder = false,
- TextStyle? hintStyle,
- Color? cursorColor,
- InputBorder? border,
- int? errorMaxLines,
- double? errorFontSize,
- bool textCapitalization = true,
- InputDecoration? inputDecoration,
- Color? obscureColor,
- Color? nonObscureColor,
- IconData? passwordIcon,
- IconData? passwordObscureIcon,
- double? passwordIconSize,
- TextStyle? labelStyle,
- Widget? label,
- String? labelText,
- double? cursorHeight,
- double? borderRadius,
Implementation
const CustomFormField({
super.key,
this.prefixIcon,
this.hintText,
this.errorText,
this.keyboardType,
this.maxLines,
this.minLines,
this.onChanged,
this.suffixIcon,
this.inputAction,
this.onFieldSubmitted,
this.readonly = false,
this.focusedBorder,
this.disabledBorder,
this.onTap,
this.focusNode,
this.controller,
this.validator,
this.obscureText = false,
this.onEditingComplete,
this.style,
this.textAlign,
this.contentPadding,
this.fillColor,
this.autoFocus = false,
this.maxLength,
this.onSuffixPressed,
this.initialValue,
this.inputFormatters,
this.showCounterText = false,
this.autoValidateMode = AutovalidateMode.onUserInteraction,
this.disableBorder = false,
this.hintStyle,
this.cursorColor,
this.border,
this.errorMaxLines,
this.errorFontSize,
this.textCapitalization = true,
this.inputDecoration,
this.obscureColor,
this.nonObscureColor,
this.passwordIcon,
this.passwordObscureIcon,
this.passwordIconSize,
this.labelStyle,
this.label,
this.labelText,
this.cursorHeight,
this.borderRadius,
});