MasterTextField constructor

const MasterTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. FocusNode? focusNode,
  4. InputDecoration? decoration,
  5. String? labelText,
  6. TextStyle? labelStyle,
  7. String? hintText,
  8. TextStyle? hintStyle,
  9. String? prefixText,
  10. IconData? prefixIcon,
  11. Widget? prefix,
  12. BoxConstraints? prefixIconConstraints,
  13. TextStyle? prefixStyle,
  14. String? suffixText,
  15. IconData? suffixIcon,
  16. Widget? suffix,
  17. BoxConstraints? suffixIconConstraints,
  18. TextStyle? suffixStyle,
  19. Widget? prefixIconWidget,
  20. Widget? suffixIconWidget,
  21. String? helperText,
  22. TextStyle? helperStyle,
  23. int? helperMaxLines,
  24. String? counterText,
  25. TextStyle? counterStyle,
  26. InputCounterWidgetBuilder? buildCounter,
  27. String? semanticCounterText,
  28. String? errorText,
  29. TextStyle? errorStyle,
  30. int? errorMaxLines,
  31. bool isDense = false,
  32. EdgeInsetsGeometry? contentPadding,
  33. bool isCollapsed = false,
  34. BoxConstraints? constraints,
  35. FloatingLabelBehavior? floatingLabelBehavior,
  36. FloatingLabelAlignment? floatingLabelAlignment,
  37. bool? alignLabelWithHint,
  38. InputBorder? border,
  39. InputBorder? enabledBorder,
  40. InputBorder? disabledBorder,
  41. InputBorder? focusedBorder,
  42. InputBorder? errorBorder,
  43. InputBorder? focusedErrorBorder,
  44. bool filled = false,
  45. Color? fillColor,
  46. TextStyle? style,
  47. TextAlign textAlign = TextAlign.start,
  48. TextDirection? textDirection,
  49. TextAlignVertical? textAlignVertical,
  50. Color? cursorColor,
  51. double? cursorWidth,
  52. double? cursorHeight,
  53. Radius? cursorRadius,
  54. bool? cursorOpacityAnimates,
  55. TextInputType? keyboardType,
  56. TextInputAction? textInputAction,
  57. TextCapitalization textCapitalization = TextCapitalization.none,
  58. List<TextInputFormatter>? inputFormatters,
  59. bool readOnly = false,
  60. bool enabled = true,
  61. bool obscureText = false,
  62. String obscuringCharacter = '•',
  63. bool autocorrect = true,
  64. bool? showCursor,
  65. bool enableSuggestions = true,
  66. bool enableInteractiveSelection = true,
  67. int? maxLines = 1,
  68. int? minLines,
  69. bool expands = false,
  70. int? maxLength,
  71. MaxLengthEnforcement? maxLengthEnforcement,
  72. bool autofocus = false,
  73. ValueChanged<String>? onChanged,
  74. ValueChanged<String>? onSubmitted,
  75. GestureTapCallback? onTap,
  76. VoidCallback? onEditingComplete,
  77. FormFieldValidator<String>? validator,
  78. AutovalidateMode? autovalidateMode,
  79. String? restorationId,
  80. Brightness? keyboardAppearance,
  81. StrutStyle? strutStyle,
  82. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  83. bool? enableIMEPersonalizedLearning,
  84. ScrollController? scrollController,
  85. ScrollPhysics? scrollPhysics,
  86. bool selectAllOnFocus = false,
  87. EditableTextContextMenuBuilder? contextMenuBuilder,
  88. TextMagnifierConfiguration? magnifierConfiguration,
  89. SpellCheckConfiguration? spellCheckConfiguration,
  90. TextSelectionControls? selectionControls,
  91. SmartQuotesType? smartQuotesType,
  92. SmartDashesType? smartDashesType,
  93. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  94. bool canRequestFocus = true,
  95. void onTapOutside(
    1. PointerDownEvent event
    )?,
  96. BoxHeightStyle? selectionHeightStyle,
  97. BoxWidthStyle? selectionWidthStyle,
  98. MouseCursor? mouseCursor,
  99. bool? stylusHandwritingEnabled,
  100. bool? scribbleEnabled,
  101. Clip clipBehavior = Clip.hardEdge,
  102. bool? enableInteractiveSelectionToolbar,
  103. List<String>? autofillHints,
})

Implementation

const MasterTextField({
  super.key,
  // Controller & Focus
  this.controller,
  this.focusNode,
  // Decoration
  this.decoration,
  this.labelText,
  this.labelStyle,
  this.hintText,
  this.hintStyle,
  this.prefixText,
  this.prefixIcon,
  this.prefix,
  this.prefixIconConstraints,
  this.prefixStyle,
  this.suffixText,
  this.suffixIcon,
  this.suffix,
  this.suffixIconConstraints,
  this.suffixStyle,
  this.prefixIconWidget,
  this.suffixIconWidget,
  this.helperText,
  this.helperStyle,
  this.helperMaxLines,
  this.counterText,
  this.counterStyle,
  this.buildCounter,
  this.semanticCounterText,
  this.errorText,
  this.errorStyle,
  this.errorMaxLines,
  this.isDense = false,
  this.contentPadding,
  this.isCollapsed = false,
  this.constraints,
  this.floatingLabelBehavior,
  this.floatingLabelAlignment,
  this.alignLabelWithHint,
  this.border,
  this.enabledBorder,
  this.disabledBorder,
  this.focusedBorder,
  this.errorBorder,
  this.focusedErrorBorder,
  this.filled = false,
  this.fillColor,
  // Text Styling
  this.style,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.textAlignVertical,
  this.cursorColor,
  this.cursorWidth,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorOpacityAnimates,
  // Keyboard & Input
  this.keyboardType,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.inputFormatters,
  // Behavior
  this.readOnly = false,
  this.enabled = true,
  this.obscureText = false,
  this.obscuringCharacter = '•',
  this.autocorrect = true,
  this.showCursor,
  this.enableSuggestions = true,
  this.enableInteractiveSelection = true,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.maxLengthEnforcement,
  this.autofocus = false,
  // Callbacks
  this.onChanged,
  this.onSubmitted,
  this.onTap,
  this.onEditingComplete,
  // Validation
  this.validator,
  this.autovalidateMode,
  // Advanced
  this.restorationId,
  this.keyboardAppearance,
  this.strutStyle,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.enableIMEPersonalizedLearning,
  // this.toolbarOptions,
  this.scrollController,
  this.scrollPhysics,
  this.selectAllOnFocus = false,
  this.contextMenuBuilder,
  this.magnifierConfiguration,
  this.spellCheckConfiguration,
  // Editable/selection and gesture
  this.selectionControls,
  this.smartQuotesType,
  this.smartDashesType,
  this.dragStartBehavior = DragStartBehavior.start,
  this.canRequestFocus = true,
  this.onTapOutside,
  this.selectionHeightStyle,
  this.selectionWidthStyle,
  // mouse / stylus / misc
  this.mouseCursor,
  this.stylusHandwritingEnabled,
  this.scribbleEnabled,
  this.clipBehavior = Clip.hardEdge,
  // semantics: intentionally not removing any original props you had earlier
  this.enableInteractiveSelectionToolbar,
  // buildCounter included above
  this.autofillHints
});