GetTextField constructor

const GetTextField({
  1. String? initialText,
  2. String? controlledText,
  3. TextEditingController? controller,
  4. AutovalidateMode? autovalidateMode,
  5. TextInputType? keyboardType,
  6. List<TextInputFormatter>? inputFormatters,
  7. TextInputAction? textInputAction,
  8. FocusNode? focusNode,
  9. VoidCallback? onTap,
  10. OnString? onSubmitted,
  11. OnString? onSaved,
  12. OnString? onChanged,
  13. OnStringCallback<String?>? validator,
  14. bool autoControlled = true,
  15. bool? readOnly,
  16. bool tapOnly = true,
  17. bool? validateLength,
  18. bool validateEmpty = true,
  19. bool? showCounter,
  20. bool? dense,
  21. bool? filled,
  22. bool? obscureText,
  23. bool? enableSuggestions,
  24. int? maxLength,
  25. int? minLines,
  26. int maxLines = 1,
  27. EdgeInsets? margin,
  28. EdgeInsets? padding,
  29. Color? background,
  30. TextCapitalization textCapitalization = TextCapitalization.none,
  31. TextStyle? style,
  32. TextAlign textAlign = TextAlign.start,
  33. TextAlignVertical? textAlignVertical,
  34. bool autofocus = false,
  35. bool expands = false,
  36. ToolbarOptions? toolbarOptions,
  37. bool? showCursor,
  38. String obscuringCharacter = "•",
  39. SmartDashesType? smartDashesType,
  40. SmartQuotesType? smartQuotesType,
  41. MaxLengthEnforcement? maxLengthEnforcement,
  42. VoidCallback? onEditingComplete,
  43. bool enabled = true,
  44. double cursorWidth = 2.0,
  45. double? cursorHeight,
  46. Radius? cursorRadius,
  47. Color? cursorColor,
  48. Brightness? keyboardBrightness,
  49. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  50. bool enableInteractiveSelection = true,
  51. TextSelectionControls? selectionControls,
  52. InputCounterWidgetBuilder? buildCounter,
  53. ScrollPhysics? scrollPhysics,
  54. Iterable<String>? autofillHints,
  55. String? label,
  56. String? hint,
  57. String? error,
  58. String? helper,
  59. Widget? hintIcon,
  60. Widget? prefix,
  61. Widget? suffix,
  62. Widget? icon,
  63. TextStyle? labelStyle,
  64. TextStyle? helperStyle,
  65. int? helperMaxLines,
  66. TextStyle? hintStyle,
  67. int? hintMaxLines,
  68. TextStyle? errorStyle,
  69. int? errorMaxLines,
  70. FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto,
  71. bool collapsed = false,
  72. EdgeInsetsGeometry? contentPadding,
  73. Widget? prefixIcon,
  74. BoxConstraints? prefixIconConstraints,
  75. String? prefixText,
  76. TextStyle? prefixStyle,
  77. Widget? suffixIcon,
  78. String? suffixText,
  79. TextStyle? suffixStyle,
  80. BoxConstraints? suffixIconConstraints,
  81. Widget? counter,
  82. String? counterText,
  83. TextStyle? counterStyle,
  84. Color? fillColor,
  85. Color? focusColor,
  86. Color? hoverColor,
  87. InputBorder? errorBorder,
  88. InputBorder? focusedBorder,
  89. InputBorder? focusedErrorBorder,
  90. InputBorder? disabledBorder,
  91. InputBorder? enabledBorder,
  92. InputBorder? border,
  93. String? semanticCounterText,
  94. bool? alignLabelWithHint,
  95. Key? key,
})

Implementation

const GetTextField({
  this.initialText,
  this.controlledText,
  this.controller,
  this.autovalidateMode,
  this.keyboardType,
  this.inputFormatters,
  this.textInputAction,
  this.focusNode,
  this.onTap,
  this.onSubmitted,
  this.onSaved,
  this.onChanged,
  this.validator,
  this.autoControlled = true,
  this.readOnly,
  this.tapOnly = true,
  this.validateLength,
  this.validateEmpty = true,
  this.showCounter,
  this.dense,
  this.filled,
  this.obscureText,
  this.enableSuggestions,
  this.maxLength,
  this.minLines,
  this.maxLines = 1,
  this.margin,
  this.padding,
  this.background,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.autofocus = false,
  this.expands = false,
  this.toolbarOptions,
  this.showCursor,
  this.obscuringCharacter = "•",
  this.smartDashesType,
  this.smartQuotesType,
  this.maxLengthEnforcement,
  this.onEditingComplete,
  this.enabled = true,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.keyboardBrightness,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.buildCounter,
  this.scrollPhysics,
  this.autofillHints,
  this.label,
  this.hint,
  this.error,
  this.helper,
  this.hintIcon,
  this.prefix,
  this.suffix,
  this.icon,
  this.labelStyle,
  this.helperStyle,
  this.helperMaxLines,
  this.hintStyle,
  this.hintMaxLines,
  this.errorStyle,
  this.errorMaxLines,
  this.floatingLabelBehavior = FloatingLabelBehavior.auto,
  this.collapsed = false,
  this.contentPadding,
  this.prefixIcon,
  this.prefixIconConstraints,
  this.prefixText,
  this.prefixStyle,
  this.suffixIcon,
  this.suffixText,
  this.suffixStyle,
  this.suffixIconConstraints,
  this.counter,
  this.counterText,
  this.counterStyle,
  this.fillColor,
  this.focusColor,
  this.hoverColor,
  this.errorBorder,
  this.focusedBorder,
  this.focusedErrorBorder,
  this.disabledBorder,
  this.enabledBorder,
  this.border,
  this.semanticCounterText,
  this.alignLabelWithHint,
  Key? key,
})  : _key = key,
      super(key: null);