GNTextFormField constructor

GNTextFormField({
  1. Key? key,
  2. required TextEditingController controller,
  3. TextInputType? keyboardType,
  4. int? maxLines,
  5. bool? enabled,
  6. bool isObscureText = false,
  7. bool? readOnly,
  8. bool? enableInteractiveSelection,
  9. Color? inputTextColor,
  10. String? inputTextFontFamily,
  11. Color? cursorColor,
  12. bool? isFilled,
  13. Color? filledColor,
  14. String? hintText,
  15. bool? isPrefixIcon = false,
  16. IconData? prefixIcon,
  17. double? prefixIconSize,
  18. EdgeInsetsGeometry? contentPadding,
  19. Color? cancelIconColor,
  20. Color? hoverColor,
  21. Color? prefixIconColor,
  22. bool? isDense,
  23. String? labelText,
  24. Color? labelTextColor,
  25. double? labelTextSize,
  26. Color? disabledBorderColor,
  27. Color? enabledBorderColor,
  28. Color? focusedErrorBorderColor,
  29. Color? errorBorderColor,
  30. Color? focusedBorderColor,
  31. Color? borderColor,
  32. double? borderRadius,
  33. String? emptyValidationMessage,
  34. ValidationFunction? customValidation,
  35. VoidCallback? onTap,
  36. bool? isRequired = false,
  37. VoidCallback? onFieldSubmitted,
  38. bool? isPassword = false,
  39. bool? allowNegativeNo = false,
  40. bool? allowZeroNo = false,
  41. bool? allowDecimalNo = true,
  42. dynamic onChanged(
    1. String
    )?,
  43. FocusNode? focusNode,
  44. VoidCallback? onCancelPressed,
  45. bool? isShowCancelIcon = true,
  46. TextAlignVertical? verticalTextAlign,
  47. TextAlign? textAlign,
  48. TextDirection? textDirection,
  49. Widget? prefixIconImage,
  50. int? maxLength,
  51. TextStyle? hintStyle,
  52. TextStyle? errorStyle,
  53. bool enable = true,
  54. FormFieldSetter<String>? onSaved,
  55. bool? showQuantityWarning = false,
  56. String? quantityWarningMessage,
  57. bool? isForcePasswordLowerCase = true,
  58. bool? isForcePasswordUpperCase = true,
  59. bool? isForcePasswordNo = true,
  60. bool? isForcePasswordSpecialChar = true,
  61. bool? isPasswordValidation = true,
  62. double? inputTextSize,
  63. Widget? suffixIcon,
  64. List? inputFormatters,
  65. bool? isPhoneValidation = true,
  66. bool? isNumberValidation = true,
  67. bool? isEmailValidation = true,
  68. bool isFirstLetterCapital = true,
  69. String? hintTextFontFamily,
})

Implementation

GNTextFormField({
  super.key,
  required this.controller,
  // required this.formKey,
  this.keyboardType,
  this.maxLines,
  this.enabled,
  this.isObscureText = false,
  this.readOnly,
  this.enableInteractiveSelection,
  this.inputTextColor,
  this.inputTextFontFamily,
  this.cursorColor,
  this.isFilled,
  this.filledColor,
  this.hintText,
  this.isPrefixIcon = false,
  this.prefixIcon,
  this.prefixIconSize,
  this.contentPadding,
  this.cancelIconColor,
  this.hoverColor,
  this.prefixIconColor,
  this.isDense,
  this.labelText,
  this.labelTextColor,
  this.labelTextSize,
  this.disabledBorderColor,
  this.enabledBorderColor,
  this.focusedErrorBorderColor,
  this.errorBorderColor,
  this.focusedBorderColor,
  this.borderColor,
  this.borderRadius,
  this.emptyValidationMessage,
  this.customValidation,
  this.onTap,
  this.isRequired = false,
  this.onFieldSubmitted,
  this.isPassword = false,
  this.allowNegativeNo = false,
  this.allowZeroNo = false,
  this.allowDecimalNo = true,
  this.onChanged,
  this.focusNode,
  this.onCancelPressed,
  this.isShowCancelIcon = true,
  this.verticalTextAlign,
  this.textAlign,
  this.textDirection,
  this.prefixIconImage,
  this.maxLength,
  this.hintStyle,
  this.errorStyle,
  this.enable = true,
  this.onSaved,
  this.showQuantityWarning = false,
  this.quantityWarningMessage,
  this.isForcePasswordLowerCase = true,
  this.isForcePasswordUpperCase = true,
  this.isForcePasswordNo = true,
  this.isForcePasswordSpecialChar = true,
  this.isPasswordValidation = true,
  this.inputTextSize,
  this.suffixIcon,
  this.inputFormatters,
  this.isPhoneValidation = true,
  this.isNumberValidation = true,
  this.isEmailValidation = true,
  this.isFirstLetterCapital = true,
  this.hintTextFontFamily,
  // this.initialValue
});