RoundedBackgroundTextField constructor

const RoundedBackgroundTextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. TextStyle? style,
  4. Color? backgroundColor,
  5. TextAlign textAlign = TextAlign.start,
  6. TextDirection? textDirection,
  7. TextScaler? textScaler,
  8. TextCapitalization textCapitalization = TextCapitalization.none,
  9. int? maxLines,
  10. double cursorWidth = 2.0,
  11. Color? cursorColor,
  12. double? cursorHeight,
  13. Radius? cursorRadius,
  14. TextInputType? keyboardType,
  15. String? hint,
  16. TextStyle? hintStyle,
  17. double innerRadius = kDefaultInnerRadius,
  18. double outerRadius = kDefaultOuterRadius,
  19. bool autofocus = false,
  20. FocusNode? focusNode,
  21. Brightness keyboardAppearance = Brightness.light,
  22. bool enableInteractiveSelection = true,
  23. TextSelectionControls? selectionControls,
  24. bool autocorrect = true,
  25. AutofillClient? autofillClient,
  26. Iterable<String>? autofillHints,
  27. Clip clipBehavior = Clip.hardEdge,
  28. bool enableIMEPersonalizedLearning = true,
  29. bool enableSuggestions = true,
  30. bool forceLine = true,
  31. TextHeightBehavior? textHeightBehavior,
  32. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  33. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  34. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  35. StrutStyle? strutStyle,
  36. List<TextInputFormatter>? inputFormatters,
  37. MouseCursor? mouseCursor,
  38. bool obscureText = false,
  39. String obscuringCharacter = '*',
  40. bool readOnly = false,
  41. bool rendererIgnoresPointer = false,
  42. String? restorationId,
  43. bool showCursor = true,
  44. bool showSelectionHandles = true,
  45. SmartDashesType smartDashesType = SmartDashesType.enabled,
  46. SmartQuotesType smartQuotesType = SmartQuotesType.enabled,
  47. TextInputAction? textInputAction,
  48. SelectionChangedCallback? onSelectionChanged,
  49. ScrollController? scrollController,
  50. ScrollPhysics? scrollPhysics,
  51. ScrollBehavior? scrollBehavior,
  52. EdgeInsets scrollPadding = EdgeInsets.zero,
  53. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  54. ContentInsertionConfiguration? contentInsertionConfiguration,
  55. EditableTextContextMenuBuilder? contextMenuBuilder,
  56. SpellCheckConfiguration? spellCheckConfiguration,
  57. TextMagnifierConfiguration magnifierConfiguration = const TextMagnifierConfiguration(),
  58. UndoHistoryController? undoController,
  59. bool scribbleEnabled = true,
  60. Locale? locale,
  61. ValueChanged<String>? onChanged,
  62. VoidCallback? onEditingComplete,
  63. ValueChanged<String>? onSubmitted,
  64. AppPrivateCommandCallback? onAppPrivateCommand,
  65. VoidCallback? onSelectionHandleTapped,
  66. TapRegionCallback? onTapOutside,
})

Implementation

const RoundedBackgroundTextField({
  super.key,
  this.controller,
  this.style,
  this.backgroundColor,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.textScaler,
  this.textCapitalization = TextCapitalization.none,
  this.maxLines,
  this.cursorWidth = 2.0,
  this.cursorColor,
  this.cursorHeight,
  this.cursorRadius,
  this.keyboardType,
  this.hint,
  this.hintStyle,
  this.innerRadius = kDefaultInnerRadius,
  this.outerRadius = kDefaultOuterRadius,
  this.autofocus = false,
  this.focusNode,
  this.keyboardAppearance = Brightness.light,
  this.enableInteractiveSelection = true,
  this.selectionControls,
  this.autocorrect = true,
  this.autofillClient,
  this.autofillHints,
  this.clipBehavior = Clip.hardEdge,
  this.enableIMEPersonalizedLearning = true,
  this.enableSuggestions = true,
  this.forceLine = true,
  this.textHeightBehavior,
  this.textWidthBasis = TextWidthBasis.parent,
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.strutStyle,
  this.inputFormatters,
  this.mouseCursor,
  this.obscureText = false,
  this.obscuringCharacter = '*',
  this.readOnly = false,
  this.rendererIgnoresPointer = false,
  this.restorationId,
  this.showCursor = true,
  this.showSelectionHandles = true,
  this.smartDashesType = SmartDashesType.enabled,
  this.smartQuotesType = SmartQuotesType.enabled,
  this.textInputAction,
  this.onSelectionChanged,
  this.scrollController,
  this.scrollPhysics,
  this.scrollBehavior,
  this.scrollPadding = EdgeInsets.zero,
  this.dragStartBehavior = DragStartBehavior.start,
  this.contentInsertionConfiguration,
  this.contextMenuBuilder,
  this.spellCheckConfiguration,
  this.magnifierConfiguration = const TextMagnifierConfiguration(),
  this.undoController,
  this.scribbleEnabled = true,
  this.locale,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.onAppPrivateCommand,
  this.onSelectionHandleTapped,
  this.onTapOutside,
});