ExtendedTextField constructor
const
ExtendedTextField({
- Key? key,
- TextEditingController? controller,
- FocusNode? focusNode,
- UndoHistoryController? undoController,
- 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,
- @Deprecated('Use `contextMenuBuilder` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.') ToolbarOptions? toolbarOptions,
- bool? showCursor,
- bool autofocus = false,
- MaterialStatesController? statesController,
- 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,
- bool? cursorOpacityAnimates,
- Color? cursorColor,
- Color? cursorErrorColor,
- BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
- BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
- Brightness? keyboardAppearance,
- EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- GestureTapCallback? onTap,
- bool onTapAlwaysCalled = false,
- TapRegionCallback? onTapOutside,
- MouseCursor? mouseCursor,
- InputCounterWidgetBuilder? buildCounter,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints = const <String>[], - ContentInsertionConfiguration? contentInsertionConfiguration,
- Clip clipBehavior = Clip.hardEdge,
- String? restorationId,
- bool scribbleEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- ExtendedEditableTextContextMenuBuilder? extendedContextMenuBuilder = _defaultContextMenuBuilder,
- bool canRequestFocus = true,
- ExtendedSpellCheckConfiguration? extendedSpellCheckConfiguration,
- SpecialTextSpanBuilder? specialTextSpanBuilder,
- TextMagnifierConfiguration? magnifierConfiguration,
Implementation
const ExtendedTextField({
super.key,
super.controller,
super.focusNode,
super.undoController,
super.decoration = const InputDecoration(),
super.keyboardType,
super.textInputAction,
super.textCapitalization = TextCapitalization.none,
super.style,
super.strutStyle,
super.textAlign = TextAlign.start,
super.textAlignVertical,
super.textDirection,
super.readOnly = false,
@Deprecated(
'Use `contextMenuBuilder` instead. '
'This feature was deprecated after v3.3.0-0.5.pre.',
)
super.toolbarOptions,
super.showCursor,
super.autofocus = false,
super.statesController,
super.obscuringCharacter = '•',
super.obscureText = false,
super.autocorrect = true,
super.smartDashesType,
super.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.cursorOpacityAnimates,
super.cursorColor,
super.cursorErrorColor,
super.selectionHeightStyle = ui.BoxHeightStyle.tight,
super.selectionWidthStyle = ui.BoxWidthStyle.tight,
super.keyboardAppearance,
super.scrollPadding = const EdgeInsets.all(20.0),
super.dragStartBehavior = DragStartBehavior.start,
super.enableInteractiveSelection,
super.selectionControls,
super.onTap,
super.onTapAlwaysCalled = false,
super.onTapOutside,
super.mouseCursor,
super.buildCounter,
super.scrollController,
super.scrollPhysics,
super.autofillHints = const <String>[],
super.contentInsertionConfiguration,
super.clipBehavior = Clip.hardEdge,
super.restorationId,
super.scribbleEnabled = true,
super.enableIMEPersonalizedLearning = true,
// zmtzwqlp
// super.contextMenuBuilder = _defaultContextMenuBuilder,
this.extendedContextMenuBuilder = _defaultContextMenuBuilder,
super.canRequestFocus = true,
// zmtzawqlp
// super.spellCheckConfiguration,
this.extendedSpellCheckConfiguration,
this.specialTextSpanBuilder,
super.magnifierConfiguration,
});