CustomFormField constructor

const CustomFormField({
  1. Key? key,
  2. Widget? prefixIcon,
  3. String? hintText,
  4. String? errorText,
  5. TextInputType? keyboardType,
  6. int? maxLines,
  7. int? minLines,
  8. void onChanged(
    1. String
    )?,
  9. Widget? suffixIcon,
  10. TextInputAction? inputAction,
  11. dynamic onFieldSubmitted(
    1. String
    )?,
  12. bool readonly = false,
  13. InputBorder? focusedBorder,
  14. InputBorder? disabledBorder,
  15. dynamic onTap()?,
  16. FocusNode? focusNode,
  17. TextEditingController? controller,
  18. String? validator(
    1. String?
    )?,
  19. bool obscureText = false,
  20. dynamic onEditingComplete()?,
  21. TextStyle? style,
  22. TextAlign? textAlign,
  23. EdgeInsetsGeometry? contentPadding,
  24. Color? fillColor,
  25. bool autoFocus = false,
  26. int? maxLength,
  27. dynamic onSuffixPressed()?,
  28. String? initialValue,
  29. List<TextInputFormatter>? inputFormatters,
  30. bool showCounterText = false,
  31. AutovalidateMode? autoValidateMode = AutovalidateMode.onUserInteraction,
  32. bool disableBorder = false,
  33. TextStyle? hintStyle,
  34. Color? cursorColor,
  35. InputBorder? border,
  36. int? errorMaxLines,
  37. double? errorFontSize,
  38. bool textCapitalization = true,
  39. InputDecoration? inputDecoration,
  40. Color? obscureColor,
  41. Color? nonObscureColor,
  42. IconData? passwordIcon,
  43. IconData? passwordObscureIcon,
  44. double? passwordIconSize,
  45. TextStyle? labelStyle,
  46. Widget? label,
  47. String? labelText,
  48. double? cursorHeight,
  49. 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,
});