TextFieldProps constructor

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