SundayMaterialTextField constructor
const
SundayMaterialTextField({
- Key? key,
- String? labelText,
- String? hintText,
- TextEditingController? controller,
- ValueChanged<
String> ? onChanged, - TextInputType? keyboardType,
- bool obscureText = false,
- dynamic decoration,
- required Style style,
- bool? enabled,
- bool? readOnly,
- int? maxLines,
- int? minLines,
- int? maxLength,
- TextAlign? textAlign,
- TextDirection? textDirection,
- bool? autocorrect,
- bool? autofocus,
- Iterable<
String> ? autofillHints, - InputCounterWidgetBuilder? buildCounter,
- bool? canRequestFocus,
- Clip? clipBehavior,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- Color? cursorColor,
- Color? cursorErrorColor,
- double? cursorHeight,
- bool? cursorOpacityAnimates,
- Radius? cursorRadius,
- double? cursorWidth,
- DragStartBehavior? dragStartBehavior,
- bool? enableIMEPersonalizedLearning,
- bool? enableInteractiveSelection,
- bool? enableSuggestions,
- bool? expands,
- FocusNode? focusNode,
- Object? groupId,
- bool? ignorePointers,
- List<
TextInputFormatter> ? inputFormatters, - Brightness? keyboardAppearance,
- TextMagnifierConfiguration? magnifierConfiguration,
- MaxLengthEnforcement? maxLengthEnforcement,
- MouseCursor? mouseCursor,
- String? obscuringCharacter,
- AppPrivateCommandCallback? onAppPrivateCommand,
- VoidCallback? onEditingComplete,
- bool? onTapAlwaysCalled,
- TapRegionCallback? onTapOutside,
- String? restorationId,
- bool? scribbleEnabled,
- ScrollController? scrollController,
- EdgeInsets? scrollPadding,
- ScrollPhysics? scrollPhysics,
- TextSelectionControls? selectionControls,
- BoxHeightStyle? selectionHeightStyle,
- BoxWidthStyle? selectionWidthStyle,
- bool? showCursor,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- SpellCheckConfiguration? spellCheckConfiguration,
- StrutStyle? strutStyle,
- TextStyle? textStyle,
- TextAlignVertical? textAlignVertical,
- UndoHistoryController? undoController,
- EdgeInsets? padding,
- ValueChanged<
String> ? onSubmitted, - ValueChanged<
bool> ? onFocusChange, - 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,
});