GenericTextField constructor
GenericTextField({
- String? label,
- String? hint,
- required FieldTypes fieldTypes,
- TextEditingController? controller,
- FocusNode? focusNode,
- EdgeInsets? margin,
- bool autoFocus = false,
- EdgeInsets? contentPadding,
- List<
TextInputFormatter> ? inputFormatters, - required TextInputType type,
- dynamic onTab()?,
- double? hintTextSize,
- BorderRadius? radius,
- int? max,
- int? maxLength,
- Widget? suffixWidget,
- Widget? prefixWidget,
- Color? textColor,
- Color? fillColor,
- Color? hintColor,
- Widget? prefixIcon,
- Widget? suffixIcon,
- dynamic onChange()?,
- TextDirection? textDirection,
- String? fontFamily,
- AutovalidateMode? autoValidateMode,
- dynamic onSubmit()?,
- required TextInputAction action,
- Color? enableBorderColor,
- Color? focusBorderColor,
- required dynamic validate(
- String? value
Implementation
GenericTextField(
{ this.label,
this.hint,
required this.fieldTypes,
this.controller,
this.focusNode,
this.margin,
this.autoFocus = false,
this.contentPadding,
this.inputFormatters,
required this.type,
this.onTab,
this.hintTextSize,
this.radius,
this.max,
this.maxLength,
this.suffixWidget,
this.prefixWidget,
this.textColor,
this.fillColor,
this.hintColor,
this.prefixIcon,
this.suffixIcon,
this.onChange,
this.textDirection,
this.fontFamily,
this.autoValidateMode,
this.onSubmit,
required this.action,
this.enableBorderColor,
this.focusBorderColor,
required this.validate});