AutoTextFormField constructor

const AutoTextFormField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? initialValue,
  4. FocusNode? focusNode,
  5. InputDecoration? decoration,
  6. TextInputType? keyboardType,
  7. TextCapitalization textCapitalization = TextCapitalization.none,
  8. TextInputAction? textInputAction,
  9. TextStyle? style,
  10. StrutStyle? strutStyle,
  11. TextDirection? textDirection,
  12. TextAlign textAlign = TextAlign.start,
  13. TextAlignVertical? textAlignVertical,
  14. bool autofocus = false,
  15. bool readOnly = false,
  16. bool? showCursor,
  17. String obscuringCharacter = '•',
  18. bool obscureText = false,
  19. bool autocorrect = true,
  20. SmartDashesType? smartDashesType,
  21. SmartQuotesType? smartQuotesType,
  22. bool enableSuggestions = true,
  23. MaxLengthEnforcement? maxLengthEnforcement,
  24. int? maxLines = 1,
  25. int? minLines,
  26. bool expands = false,
  27. int? maxLength,
  28. void onChanged(
    1. String
    )?,
  29. void onTap()?,
  30. bool onTapAlwaysCalled = false,
  31. void onTapOutside(
    1. PointerDownEvent
    )?,
  32. void onEditingComplete()?,
  33. void onFieldSubmitted(
    1. String
    )?,
  34. void onSaved(
    1. String?
    )?,
  35. String? validator(
    1. String?
    )?,
  36. List<TextInputFormatter>? inputFormatters,
  37. bool? enabled,
  38. bool? ignorePointers,
  39. double cursorWidth = 2.0,
  40. double? cursorHeight,
  41. Radius? cursorRadius,
  42. Color? cursorColor,
  43. Color? cursorErrorColor,
  44. Brightness? keyboardAppearance,
  45. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  46. bool? enableInteractiveSelection,
  47. TextSelectionControls? selectionControls,
  48. Widget? buildCounter(
    1. BuildContext, {
    2. required int currentLength,
    3. required bool isFocused,
    4. required int? maxLength,
    })?,
  49. ScrollPhysics? scrollPhysics,
  50. Iterable<String>? autofillHints,
  51. AutovalidateMode? autovalidateMode,
  52. ScrollController? scrollController,
  53. String? restorationId,
  54. MouseCursor? mouseCursor,
  55. Widget contextMenuBuilder(
    1. BuildContext,
    2. EditableTextState
    )?,
  56. SpellCheckConfiguration? spellCheckConfiguration,
  57. TextMagnifierConfiguration? magnifierConfiguration,
  58. UndoHistoryController? undoController,
  59. void onAppPrivateCommand(
    1. String,
    2. Map<String, dynamic>
    )?,
  60. bool? cursorOpacityAnimates,
  61. BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
  62. BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
  63. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  64. ContentInsertionConfiguration? contentInsertionConfiguration,
  65. WidgetStatesController? statesController,
  66. Clip clipBehavior = Clip.hardEdge,
  67. bool scribbleEnabled = true,
  68. bool canRequestFocus = true,
  69. bool enableIMEPersonalizedLearning = true,
  70. 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,
});