EasyFormField constructor
const
EasyFormField({
- Key? key,
- required String label,
- FieldType fieldType = FieldType.text,
- TextEditingController? controller,
- String? validator()?,
- String? hintText,
- bool required = true,
- IconData? prefixIcon,
- IconData? suffixIcon,
- VoidCallback? onSuffixIconPressed,
- dynamic onChanged()?,
- dynamic onSaved()?,
- bool enabled = true,
- int maxLines = 1,
- TextInputAction? textInputAction,
- FocusNode? focusNode,
- EdgeInsetsGeometry? contentPadding,
- InputBorder? border,
- InputBorder? enabledBorder,
- InputBorder? focusedBorder,
- InputBorder? errorBorder,
- InputBorder? focusedErrorBorder,
- InputBorder? disabledBorder,
- Color? fillColor,
- bool filled = false,
- TextStyle? labelStyle,
- TextStyle? hintStyle,
- TextStyle? textStyle,
- TextStyle? errorStyle,
- Color? cursorColor,
- double? cursorHeight,
- Radius? cursorRadius,
- double? cursorWidth,
- Color? focusColor,
- Color? hoverColor,
- Color? prefixIconColor,
- Color? suffixIconColor,
- double? borderRadius,
- BorderRadius? customBorderRadius,
- double? borderWidth,
- double? focusedBorderWidth,
- double? errorBorderWidth,
- Color? borderColor,
- Color? focusedBorderColor,
- Color? errorBorderColor,
- Color? disabledBorderColor,
- List<
BoxShadow> ? boxShadow, - double? elevation,
- double? iconSize,
- EdgeInsetsGeometry? prefixIconPadding,
- EdgeInsetsGeometry? suffixIconPadding,
- EdgeInsetsGeometry? fieldMargin,
- EdgeInsetsGeometry? fieldPadding,
- DateTime? initialDate,
- DateTime? firstDate,
- DateTime? lastDate,
Implementation
const EasyFormField({
super.key,
required this.label,
this.fieldType = FieldType.text,
this.controller,
this.validator,
this.hintText,
this.required = true,
this.prefixIcon,
this.suffixIcon,
this.onSuffixIconPressed,
this.onChanged,
this.onSaved,
this.enabled = true,
this.maxLines = 1,
this.textInputAction,
this.focusNode,
this.contentPadding,
this.border,
this.enabledBorder,
this.focusedBorder,
this.errorBorder,
this.focusedErrorBorder,
this.disabledBorder,
this.fillColor,
this.filled = false,
this.labelStyle,
this.hintStyle,
this.textStyle,
this.errorStyle,
this.cursorColor,
this.cursorHeight,
this.cursorRadius,
this.cursorWidth,
this.focusColor,
this.hoverColor,
this.prefixIconColor,
this.suffixIconColor,
this.borderRadius,
this.customBorderRadius,
this.borderWidth,
this.focusedBorderWidth,
this.errorBorderWidth,
this.borderColor,
this.focusedBorderColor,
this.errorBorderColor,
this.disabledBorderColor,
this.boxShadow,
this.elevation,
this.iconSize,
this.prefixIconPadding,
this.suffixIconPadding,
this.fieldMargin,
this.fieldPadding,
this.initialDate,
this.firstDate,
this.lastDate,
});