EasyFormField constructor

const EasyFormField({
  1. Key? key,
  2. required String label,
  3. FieldType fieldType = FieldType.text,
  4. TextEditingController? controller,
  5. String? validator(
    1. String?
    )?,
  6. String? hintText,
  7. bool required = true,
  8. IconData? prefixIcon,
  9. IconData? suffixIcon,
  10. VoidCallback? onSuffixIconPressed,
  11. dynamic onChanged(
    1. String
    )?,
  12. dynamic onSaved(
    1. String?
    )?,
  13. bool enabled = true,
  14. int maxLines = 1,
  15. TextInputAction? textInputAction,
  16. FocusNode? focusNode,
  17. EdgeInsetsGeometry? contentPadding,
  18. InputBorder? border,
  19. InputBorder? enabledBorder,
  20. InputBorder? focusedBorder,
  21. InputBorder? errorBorder,
  22. InputBorder? focusedErrorBorder,
  23. InputBorder? disabledBorder,
  24. Color? fillColor,
  25. bool filled = false,
  26. TextStyle? labelStyle,
  27. TextStyle? hintStyle,
  28. TextStyle? textStyle,
  29. TextStyle? errorStyle,
  30. Color? cursorColor,
  31. double? cursorHeight,
  32. Radius? cursorRadius,
  33. double? cursorWidth,
  34. Color? focusColor,
  35. Color? hoverColor,
  36. Color? prefixIconColor,
  37. Color? suffixIconColor,
  38. double? borderRadius,
  39. BorderRadius? customBorderRadius,
  40. double? borderWidth,
  41. double? focusedBorderWidth,
  42. double? errorBorderWidth,
  43. Color? borderColor,
  44. Color? focusedBorderColor,
  45. Color? errorBorderColor,
  46. Color? disabledBorderColor,
  47. List<BoxShadow>? boxShadow,
  48. double? elevation,
  49. double? iconSize,
  50. EdgeInsetsGeometry? prefixIconPadding,
  51. EdgeInsetsGeometry? suffixIconPadding,
  52. EdgeInsetsGeometry? fieldMargin,
  53. EdgeInsetsGeometry? fieldPadding,
  54. DateTime? initialDate,
  55. DateTime? firstDate,
  56. 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,
});