GNTextFormField constructor
GNTextFormField({
- Key? key,
- required TextEditingController controller,
- TextInputType? keyboardType,
- int? maxLines,
- bool? enabled,
- bool isObscureText = false,
- bool? readOnly,
- bool? enableInteractiveSelection,
- Color? inputTextColor,
- String? inputTextFontFamily,
- Color? cursorColor,
- bool? isFilled,
- Color? filledColor,
- String? hintText,
- bool? isPrefixIcon = false,
- IconData? prefixIcon,
- double? prefixIconSize,
- EdgeInsetsGeometry? contentPadding,
- Color? cancelIconColor,
- Color? hoverColor,
- Color? prefixIconColor,
- bool? isDense,
- String? labelText,
- Color? labelTextColor,
- double? labelTextSize,
- Color? disabledBorderColor,
- Color? enabledBorderColor,
- Color? focusedErrorBorderColor,
- Color? errorBorderColor,
- Color? focusedBorderColor,
- Color? borderColor,
- double? borderRadius,
- String? emptyValidationMessage,
- ValidationFunction? customValidation,
- VoidCallback? onTap,
- bool? isRequired = false,
- VoidCallback? onFieldSubmitted,
- bool? isPassword = false,
- bool? allowNegativeNo = false,
- bool? allowZeroNo = false,
- bool? allowDecimalNo = true,
- dynamic onChanged()?,
- FocusNode? focusNode,
- VoidCallback? onCancelPressed,
- bool? isShowCancelIcon = true,
- TextAlignVertical? verticalTextAlign,
- TextAlign? textAlign,
- TextDirection? textDirection,
- Widget? prefixIconImage,
- int? maxLength,
- TextStyle? hintStyle,
- TextStyle? errorStyle,
- bool enable = true,
- FormFieldSetter<
String> ? onSaved, - bool? showQuantityWarning = false,
- String? quantityWarningMessage,
- bool? isForcePasswordLowerCase = true,
- bool? isForcePasswordUpperCase = true,
- bool? isForcePasswordNo = true,
- bool? isForcePasswordSpecialChar = true,
- bool? isPasswordValidation = true,
- double? inputTextSize,
- Widget? suffixIcon,
- List? inputFormatters,
- bool? isPhoneValidation = true,
- bool? isNumberValidation = true,
- bool? isEmailValidation = true,
- bool isFirstLetterCapital = true,
- 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
});