RichTextField constructor
const
RichTextField({
- Key? key,
- required RichTextEditorController controller,
- FocusNode? focusNode,
- InputDecoration? decoration = const InputDecoration(),
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool readOnly = false,
- bool? showCursor,
- bool autofocus = false,
- String obscuringCharacter = '•',
- bool obscureText = false,
- bool autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- int? maxLines = 1,
- int? minLines,
- bool expands = false,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- ValueChanged<
String> ? onChanged, - VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - AppPrivateCommandCallback? onAppPrivateCommand,
- List<
TextInputFormatter> ? inputFormatters, - bool? enabled,
- double cursorWidth = 2.0,
- double? cursorHeight,
- Radius? cursorRadius,
- Color? cursorColor,
- BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- GestureTapCallback? onTap,
- TapRegionCallback? onTapOutside,
- MouseCursor? mouseCursor,
- InputCounterWidgetBuilder? buildCounter,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints = const <String>[], - Clip clipBehavior = Clip.hardEdge,
- String? restorationId,
- bool scribbleEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- EditableTextContextMenuBuilder? contextMenuBuilder = _defaultContextMenuBuilder,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextMagnifierConfiguration? magnifierConfiguration,
Implementation
const RichTextField({
super.key,
required this.controller,
super.focusNode,
super.decoration = const InputDecoration(),
TextInputType? keyboardType,
super.textInputAction,
super.textCapitalization = TextCapitalization.none,
super.style,
super.strutStyle,
super.textAlign = TextAlign.start,
super.textAlignVertical,
super.textDirection,
super.readOnly = false,
super.showCursor,
super.autofocus = false,
super.obscuringCharacter = '•',
super.obscureText = false,
super.autocorrect = true,
SmartDashesType? smartDashesType,
SmartQuotesType? smartQuotesType,
super.enableSuggestions = true,
super.maxLines = 1,
super.minLines,
super.expands = false,
super.maxLength,
super.maxLengthEnforcement,
super.onChanged,
super.onEditingComplete,
super.onSubmitted,
super.onAppPrivateCommand,
super.inputFormatters,
super.enabled,
super.cursorWidth = 2.0,
super.cursorHeight,
super.cursorRadius,
super.cursorColor,
super.selectionHeightStyle = BoxHeightStyle.tight,
super.selectionWidthStyle = BoxWidthStyle.tight,
super.keyboardAppearance,
super.scrollPadding = const EdgeInsets.all(20.0),
super.dragStartBehavior = DragStartBehavior.start,
bool? enableInteractiveSelection,
super.selectionControls,
super.onTap,
super.onTapOutside,
super.mouseCursor,
super.buildCounter,
super.scrollController,
super.scrollPhysics,
super.autofillHints = const <String>[],
super.clipBehavior = Clip.hardEdge,
super.restorationId,
super.scribbleEnabled = true,
super.enableIMEPersonalizedLearning = true,
super.contextMenuBuilder,
super.spellCheckConfiguration,
super.magnifierConfiguration,
});