AutoTextFormField constructor
const
AutoTextFormField({
- Key? key,
- TextEditingController? controller,
- String? initialValue,
- FocusNode? focusNode,
- InputDecoration? decoration,
- TextInputType? keyboardType,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextInputAction? textInputAction,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextDirection? textDirection,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- bool autofocus = false,
- bool readOnly = false,
- bool? showCursor,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- MaxLengthEnforcement? maxLengthEnforcement,
- int? maxLines = 1,
- int? minLines,
- bool expands = false,
- int? maxLength,
- void onChanged()?,
- void onTap()?,
- bool onTapAlwaysCalled = false,
- void onTapOutside()?,
- void onEditingComplete()?,
- void onFieldSubmitted()?,
- void onSaved()?,
- String? validator()?,
- List<
TextInputFormatter> ? inputFormatters, - bool? enabled,
- bool? ignorePointers,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- Color? cursorErrorColor,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- Widget? buildCounter(
- BuildContext, {
- required int currentLength,
- required bool isFocused,
- required int? maxLength,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - AutovalidateMode? autovalidateMode,
- ScrollController? scrollController,
- String? restorationId,
- MouseCursor? mouseCursor,
- Widget contextMenuBuilder()?,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextMagnifierConfiguration? magnifierConfiguration,
- UndoHistoryController? undoController,
- void onAppPrivateCommand()?,
- bool? cursorOpacityAnimates,
- BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- WidgetStatesController? statesController,
- Clip clipBehavior = Clip.hardEdge,
- bool scribbleEnabled = true,
- bool canRequestFocus = true,
- bool enableIMEPersonalizedLearning = true,
- FormController? formController,
Implementation
const AutoTextFormField({
super.key,
this.controller,
this.initialValue,
this.focusNode,
this.decoration,
this.keyboardType,
this.textCapitalization = TextCapitalization.none,
this.textInputAction,
this.style,
this.strutStyle,
this.textDirection,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.autofocus = false,
this.readOnly = false,
this.showCursor,
this.obscuringCharacter = '•',
this.obscureText = false,
this.autocorrect = true,
this.smartDashesType,
this.smartQuotesType,
this.enableSuggestions = true,
this.maxLengthEnforcement,
this.maxLines = 1,
this.minLines,
this.expands = false,
this.maxLength,
this.onChanged,
this.onTap,
this.onTapAlwaysCalled = false,
this.onTapOutside,
this.onEditingComplete,
this.onFieldSubmitted,
this.onSaved,
this.validator,
this.inputFormatters,
this.enabled,
this.ignorePointers,
this.cursorWidth = 2.0,
this.cursorHeight,
this.cursorRadius,
this.cursorColor,
this.cursorErrorColor,
this.keyboardAppearance,
this.scrollPadding = const EdgeInsets.all(20.0),
this.enableInteractiveSelection,
this.selectionControls,
this.buildCounter,
this.scrollPhysics,
this.autofillHints,
this.autovalidateMode,
this.scrollController,
this.restorationId,
this.mouseCursor,
this.contextMenuBuilder,
this.spellCheckConfiguration,
this.magnifierConfiguration,
this.undoController,
this.onAppPrivateCommand,
this.cursorOpacityAnimates,
this.selectionHeightStyle = BoxHeightStyle.tight,
this.selectionWidthStyle = BoxWidthStyle.tight,
this.dragStartBehavior = DragStartBehavior.start,
this.contentInsertionConfiguration,
this.statesController,
this.clipBehavior = Clip.hardEdge,
this.scribbleEnabled = true,
this.canRequestFocus = true,
this.enableIMEPersonalizedLearning = true,
this.formController,
});