TextFieldProps constructor

const TextFieldProps({
  1. TextEditingController? controller,
  2. InputDecoration decoration = const InputDecoration(border: OutlineInputBorder()),
  3. TextInputType? keyboardType,
  4. TextInputAction? textInputAction,
  5. TextCapitalization textCapitalization = TextCapitalization.none,
  6. TextStyle? style,
  7. StrutStyle? strutStyle,
  8. TextAlign textAlign = TextAlign.start,
  9. TextAlignVertical? textAlignVertical,
  10. TextDirection? textDirection,
  11. bool readOnly = false,
  12. EditableTextContextMenuBuilder? contextMenuBuilder,
  13. bool? showCursor,
  14. bool autofocus = false,
  15. String obscuringCharacter = '•',
  16. bool obscureText = false,
  17. bool autocorrect = true,
  18. SmartDashesType? smartDashesType,
  19. SmartQuotesType? smartQuotesType,
  20. bool enableSuggestions = true,
  21. int maxLines = 1,
  22. int minLines = 1,
  23. bool expands = false,
  24. int? maxLength,
  25. MaxLengthEnforcement? maxLengthEnforcement,
  26. AppPrivateCommandCallback? onAppPrivateCommand,
  27. List<TextInputFormatter>? inputFormatters,
  28. bool? enabled,
  29. double cursorWidth = 2.0,
  30. double? cursorHeight,
  31. Radius? cursorRadius,
  32. Color? cursorColor,
  33. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  34. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  35. Brightness? keyboardAppearance,
  36. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  37. EdgeInsets padding = const EdgeInsets.all(8.0),
  38. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  39. bool enableInteractiveSelection = true,
  40. TextSelectionControls? selectionControls,
  41. GestureTapCallback? onTap,
  42. MouseCursor? mouseCursor,
  43. InputCounterWidgetBuilder? buildCounter,
  44. ScrollController? scrollController,
  45. ScrollPhysics? scrollPhysics,
  46. Iterable<String>? autofillHints,
  47. String? restorationId,
  48. Clip clipBehavior = Clip.hardEdge,
  49. bool enableIMEPersonalizedLearning = true,
  50. FocusNode? focusNode,
})

Implementation

const TextFieldProps({
  this.controller,
  this.decoration = const InputDecoration(border: OutlineInputBorder()),
  this.keyboardType,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.readOnly = false,
  this.contextMenuBuilder,
  this.showCursor,
  this.autofocus = false,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLines = 1,
  this.minLines = 1,
  this.expands = false,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.enabled,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorColor,
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.padding = const EdgeInsets.all(8.0),
  this.dragStartBehavior = DragStartBehavior.start,
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.onTap,
  this.mouseCursor,
  this.buildCounter,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.enableIMEPersonalizedLearning = true,
  this.focusNode,
});