SundayMaterialTextField constructor

const SundayMaterialTextField({
  1. Key? key,
  2. String? labelText,
  3. String? hintText,
  4. TextEditingController? controller,
  5. ValueChanged<String>? onChanged,
  6. TextInputType? keyboardType,
  7. bool obscureText = false,
  8. dynamic decoration,
  9. required Style style,
  10. bool? enabled,
  11. bool? readOnly,
  12. int? maxLines,
  13. int? minLines,
  14. int? maxLength,
  15. TextAlign? textAlign,
  16. TextDirection? textDirection,
  17. bool? autocorrect,
  18. bool? autofocus,
  19. Iterable<String>? autofillHints,
  20. InputCounterWidgetBuilder? buildCounter,
  21. bool? canRequestFocus,
  22. Clip? clipBehavior,
  23. ContentInsertionConfiguration? contentInsertionConfiguration,
  24. EditableTextContextMenuBuilder? contextMenuBuilder,
  25. Color? cursorColor,
  26. Color? cursorErrorColor,
  27. double? cursorHeight,
  28. bool? cursorOpacityAnimates,
  29. Radius? cursorRadius,
  30. double? cursorWidth,
  31. DragStartBehavior? dragStartBehavior,
  32. bool? enableIMEPersonalizedLearning,
  33. bool? enableInteractiveSelection,
  34. bool? enableSuggestions,
  35. bool? expands,
  36. FocusNode? focusNode,
  37. Object? groupId,
  38. bool? ignorePointers,
  39. List<TextInputFormatter>? inputFormatters,
  40. Brightness? keyboardAppearance,
  41. TextMagnifierConfiguration? magnifierConfiguration,
  42. MaxLengthEnforcement? maxLengthEnforcement,
  43. MouseCursor? mouseCursor,
  44. String? obscuringCharacter,
  45. AppPrivateCommandCallback? onAppPrivateCommand,
  46. VoidCallback? onEditingComplete,
  47. bool? onTapAlwaysCalled,
  48. TapRegionCallback? onTapOutside,
  49. String? restorationId,
  50. bool? scribbleEnabled,
  51. ScrollController? scrollController,
  52. EdgeInsets? scrollPadding,
  53. ScrollPhysics? scrollPhysics,
  54. TextSelectionControls? selectionControls,
  55. BoxHeightStyle? selectionHeightStyle,
  56. BoxWidthStyle? selectionWidthStyle,
  57. bool? showCursor,
  58. SmartDashesType? smartDashesType,
  59. SmartQuotesType? smartQuotesType,
  60. SpellCheckConfiguration? spellCheckConfiguration,
  61. StrutStyle? strutStyle,
  62. TextStyle? textStyle,
  63. TextAlignVertical? textAlignVertical,
  64. UndoHistoryController? undoController,
  65. EdgeInsets? padding,
  66. ValueChanged<String>? onSubmitted,
  67. ValueChanged<bool>? onFocusChange,
  68. bool showClearButton = false,
})

Constructs a SundayMaterialTextField with the given properties.

The style parameter is required and determines the style of the text field.

Implementation

const SundayMaterialTextField({
  super.key,
  this.labelText,
  this.hintText,
  this.controller,
  this.onChanged,
  this.keyboardType,
  this.obscureText = false,
  this.decoration,
  required this.style,
  this.enabled,
  this.readOnly,
  this.maxLines,
  this.minLines,
  this.maxLength,
  this.textAlign,
  this.textDirection,
  this.autocorrect,
  this.autofocus,
  this.autofillHints,
  this.buildCounter,
  this.canRequestFocus,
  this.clipBehavior,
  this.contentInsertionConfiguration,
  this.contextMenuBuilder,
  this.cursorColor,
  this.cursorErrorColor,
  this.cursorHeight,
  this.cursorOpacityAnimates,
  this.cursorRadius,
  this.cursorWidth,
  this.dragStartBehavior,
  this.enableIMEPersonalizedLearning,
  this.enableInteractiveSelection,
  this.enableSuggestions,
  this.expands,
  this.focusNode,
  this.groupId,
  this.ignorePointers,
  this.inputFormatters,
  this.keyboardAppearance,
  this.magnifierConfiguration,
  this.maxLengthEnforcement,
  this.mouseCursor,
  this.obscuringCharacter,
  this.onAppPrivateCommand,
  this.onEditingComplete,
  this.onTapAlwaysCalled,
  this.onTapOutside,
  this.restorationId,
  this.scribbleEnabled,
  this.scrollController,
  this.scrollPadding,
  this.scrollPhysics,
  this.selectionControls,
  this.selectionHeightStyle,
  this.selectionWidthStyle,
  this.showCursor,
  this.smartDashesType,
  this.smartQuotesType,
  this.spellCheckConfiguration,
  this.strutStyle,
  this.textStyle,
  this.textAlignVertical,
  this.undoController,
  this.padding,
  this.onSubmitted,
  this.onFocusChange,
  this.showClearButton = false,
});