TextFieldProps constructor

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