RoundedBackgroundTextField constructor
const
RoundedBackgroundTextField({
- Key? key,
- TextEditingController? controller,
- TextStyle? style,
- Color? backgroundColor,
- TextAlign textAlign = TextAlign.start,
- TextDirection? textDirection,
- TextScaler? textScaler,
- TextCapitalization textCapitalization = TextCapitalization.none,
- int? maxLines,
- double cursorWidth = 2.0,
- Color? cursorColor,
- double? cursorHeight,
- Radius? cursorRadius,
- TextInputType? keyboardType,
- String? hint,
- TextStyle? hintStyle,
- double innerRadius = kDefaultInnerRadius,
- double outerRadius = kDefaultOuterRadius,
- bool autofocus = false,
- FocusNode? focusNode,
- Brightness keyboardAppearance = Brightness.light,
- bool enableInteractiveSelection = true,
- TextSelectionControls? selectionControls,
- bool autocorrect = true,
- AutofillClient? autofillClient,
- Iterable<
String> ? autofillHints, - Clip clipBehavior = Clip.hardEdge,
- bool enableIMEPersonalizedLearning = true,
- bool enableSuggestions = true,
- bool forceLine = true,
- TextHeightBehavior? textHeightBehavior,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
- StrutStyle? strutStyle,
- List<
TextInputFormatter> ? inputFormatters, - MouseCursor? mouseCursor,
- bool obscureText = false,
- String obscuringCharacter = '*',
- bool readOnly = false,
- bool rendererIgnoresPointer = false,
- String? restorationId,
- bool showCursor = true,
- bool showSelectionHandles = true,
- SmartDashesType smartDashesType = SmartDashesType.enabled,
- SmartQuotesType smartQuotesType = SmartQuotesType.enabled,
- TextInputAction? textInputAction,
- SelectionChangedCallback? onSelectionChanged,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- ScrollBehavior? scrollBehavior,
- EdgeInsets scrollPadding = EdgeInsets.zero,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextMagnifierConfiguration magnifierConfiguration = const TextMagnifierConfiguration(),
- UndoHistoryController? undoController,
- bool scribbleEnabled = true,
- Locale? locale,
- ValueChanged<
String> ? onChanged, - VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - AppPrivateCommandCallback? onAppPrivateCommand,
- VoidCallback? onSelectionHandleTapped,
- 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,
});