GfFormField constructor

const GfFormField({
  1. Key? key,
  2. required GfFormFieldType gfFormFieldType,
  3. Color? editingbordercolor,
  4. Color? idlebordercolor,
  5. double? borderwidth,
  6. String? hintText,
  7. GFTextFieldShape? shape,
  8. Color? backgroundcolor,
  9. Color? normalbordercolor = Colors.grey,
  10. Color? focusedbordercolor = Colors.green,
  11. Color? errorbordercolor = Colors.red,
  12. Color? disabledbordercolor = Colors.black,
  13. Widget? iconPrefix,
  14. double? paddingvertical = 3,
  15. double? paddinghorizontal = 4,
  16. double? marginvertical = 3,
  17. double? marginhorizontal = 4,
  18. TextEditingController? controller,
  19. String initialValue = '',
  20. FocusNode? focusNode,
  21. TextInputType? keyboardType = TextInputType.text,
  22. TextCapitalization textCapitalization = TextCapitalization.none,
  23. TextInputAction? textInputAction,
  24. TextStyle? style = const TextStyle(),
  25. StrutStyle? strutStyle = const StrutStyle(),
  26. TextDirection? textDirection = TextDirection.ltr,
  27. TextAlign? textAlign = TextAlign.start,
  28. TextAlignVertical? textAlignVertical = TextAlignVertical.center,
  29. bool autofocus = false,
  30. bool? readOnly = false,
  31. bool? showCursor,
  32. String obscuringCharacter = '.',
  33. bool obscureText = false,
  34. bool autocorrect = true,
  35. SmartDashesType? smartDashesType,
  36. SmartQuotesType? smartQuotesType,
  37. bool enableSuggestions = true,
  38. bool? autovalidate = true,
  39. MaxLengthEnforcement maxLengthEnforced = MaxLengthEnforcement.none,
  40. int? maxLines = 1,
  41. int? minLines = 1,
  42. bool expands = false,
  43. int? maxLength,
  44. ValueChanged<String>? onChanged,
  45. GestureTapCallback? onTap,
  46. VoidCallback? onEditingComplete,
  47. ValueChanged<String>? onFieldSubmitted,
  48. FormFieldSetter<String>? onSaved,
  49. FormFieldValidator<String>? validator,
  50. List<TextInputFormatter>? inputFormatters,
  51. bool enabled = true,
  52. double? cursorWidth = 2.0,
  53. double? cursorHeight,
  54. Radius? cursorRadius,
  55. Color? cursorColor,
  56. Color? color,
  57. double? borderradius,
  58. Brightness? keyboardAppearance,
  59. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  60. bool enableInteractiveSelection = true,
  61. InputCounterWidgetBuilder? buildCounter,
  62. ScrollPhysics? scrollPhysics,
  63. Iterable<String>? autofillHints,
  64. AutovalidateMode autovalidateMode = AutovalidateMode.disabled,
  65. dynamic onGenderChanged(
    1. String?
    )?,
})

Implementation

const GfFormField({
  Key? key,
  required this.gfFormFieldType,
  this.editingbordercolor,
  this.idlebordercolor,
  this.borderwidth,
  this.hintText,
  this.shape,
  this.backgroundcolor,
  this.normalbordercolor = Colors.grey,
  this.focusedbordercolor = Colors.green,
  this.errorbordercolor = Colors.red,
  this.disabledbordercolor = Colors.black,
  this.iconPrefix,
  this.paddingvertical = 3,
  this.paddinghorizontal = 4,
  this.marginvertical = 3,
  this.marginhorizontal = 4,
  this.controller,
  this.initialValue = '',
  this.focusNode,
  this.keyboardType = TextInputType.text,
  this.textCapitalization = TextCapitalization.none,
  this.textInputAction,
  this.style = const TextStyle(),
  this.strutStyle = const StrutStyle(),
  this.textDirection = TextDirection.ltr,
  this.textAlign = TextAlign.start,
  this.textAlignVertical = TextAlignVertical.center,
  this.autofocus = false,
  this.readOnly = false,
  this.showCursor,
  this.obscuringCharacter = '.',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.autovalidate = true,
  this.maxLengthEnforced = MaxLengthEnforcement.none,
  this.maxLines = 1,
  this.minLines = 1,
  this.expands = false,
  this.maxLength,
  this.onChanged,
  this.onTap,
  this.onEditingComplete,
  this.onFieldSubmitted,
  this.onSaved,
  this.validator,
  this.inputFormatters,
  this.enabled = true,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.color,
  this.borderradius,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20),
  this.enableInteractiveSelection = true,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.autovalidateMode = AutovalidateMode.disabled,
  this.onGenderChanged,
}) : super(key: key);