QuillEditorConfig constructor
const
QuillEditorConfig({
- bool scrollable = true,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- @experimental List<
CharacterShortcutEvent> characterShortcutEvents = const [], - @experimental List<
SpaceShortcutEvent> spaceShortcutEvents = const [], - bool autoFocus = false,
- bool expands = false,
- String? placeholder,
- bool? checkBoxReadOnly,
- bool disableClipboard = false,
- TextSelectionThemeData? textSelectionThemeData,
- bool? showCursor,
- bool? paintCursorAboveText,
- bool enableInteractiveSelection = true,
- bool enableSelectionToolbar = true,
- double scrollBottomInset = 0,
- double? minHeight,
- double? maxHeight,
- double? maxContentWidth,
- DefaultStyles? customStyles,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- Brightness? keyboardAppearance,
- ScrollPhysics? scrollPhysics,
- ValueChanged<
String> ? onLaunchUrl, - bool onTapDown(
- TapDownDetails details,
- TextPosition (
- Offset offset
- bool onTapUp(
- TapUpDetails details,
- TextPosition (
- Offset offset
- bool onSingleLongTapStart(
- LongPressStartDetails details,
- TextPosition (
- Offset offset
- bool onSingleLongTapMoveUpdate(
- LongPressMoveUpdateDetails details,
- TextPosition (
- Offset offset
- bool onSingleLongTapEnd(
- LongPressEndDetails details,
- TextPosition (
- Offset offset
- @experimental KeyEventResult? onKeyPressed()?,
- bool enableAlwaysIndentOnTab = false,
- Iterable<
EmbedBuilder> ? embedBuilders, - TextSpanBuilder textSpanBuilder = defaultSpanBuilder,
- QuillMagnifierBuilder? quillMagnifierBuilder,
- EmbedBuilder? unknownEmbedBuilder,
- @experimental QuillSearchConfig searchConfig = const QuillSearchConfig(),
- LinkActionPickerDelegate linkActionPickerDelegate = defaultLinkActionPickerDelegate,
- CustomStyleBuilder? customStyleBuilder,
- CustomRecognizerBuilder? customRecognizerBuilder,
- bool floatingCursorDisabled = false,
- TextSelectionControls? textSelectionControls,
- Map<
ShortcutActivator, Intent> ? customShortcuts, - Map<
Type, Action< ? customActions,Intent> > - bool detectWordBoundary = true,
- bool onTapOutsideEnabled = true,
- dynamic onTapOutside(
- PointerDownEvent event,
- FocusNode focusNode
- List<
String> customLinkPrefixes = const <String>[], - QuillDialogTheme? dialogTheme,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- QuillEditorContextMenuBuilder? contextMenuBuilder,
- GlobalKey<
EditorState> ? editorKey, - bool requestKeyboardFocusOnCheckListChanged = false,
- TextInputAction textInputAction = TextInputAction.newline,
- bool enableScribble = false,
- void onScribbleActivated()?,
- EdgeInsets? scribbleAreaInsets,
- MouseCursor readOnlyMouseCursor = SystemMouseCursors.text,
- void onPerformAction(
- TextInputAction action
- @experimental LeadingBlockNodeBuilder? customLeadingBlockBuilder,
Implementation
const QuillEditorConfig({
this.scrollable = true,
this.padding = EdgeInsets.zero,
@experimental this.characterShortcutEvents = const [],
@experimental this.spaceShortcutEvents = const [],
this.autoFocus = false,
this.expands = false,
this.placeholder,
this.checkBoxReadOnly,
this.disableClipboard = false,
this.textSelectionThemeData,
this.showCursor,
this.paintCursorAboveText,
this.enableInteractiveSelection = true,
this.enableSelectionToolbar = true,
this.scrollBottomInset = 0,
this.minHeight,
this.maxHeight,
this.maxContentWidth,
this.customStyles,
this.textCapitalization = TextCapitalization.sentences,
this.keyboardAppearance,
this.scrollPhysics,
this.onLaunchUrl,
this.onTapDown,
this.onTapUp,
this.onSingleLongTapStart,
this.onSingleLongTapMoveUpdate,
this.onSingleLongTapEnd,
@experimental this.onKeyPressed,
this.enableAlwaysIndentOnTab = false,
this.embedBuilders,
this.textSpanBuilder = defaultSpanBuilder,
this.quillMagnifierBuilder,
this.unknownEmbedBuilder,
@experimental this.searchConfig = const QuillSearchConfig(),
this.linkActionPickerDelegate = defaultLinkActionPickerDelegate,
this.customStyleBuilder,
this.customRecognizerBuilder,
this.floatingCursorDisabled = false,
this.textSelectionControls,
this.customShortcuts,
this.customActions,
this.detectWordBoundary = true,
this.onTapOutsideEnabled = true,
this.onTapOutside,
this.customLinkPrefixes = const <String>[],
this.dialogTheme,
this.contentInsertionConfiguration,
this.contextMenuBuilder,
this.editorKey,
this.requestKeyboardFocusOnCheckListChanged = false,
this.textInputAction = TextInputAction.newline,
this.enableScribble = false,
this.onScribbleActivated,
this.scribbleAreaInsets,
this.readOnlyMouseCursor = SystemMouseCursors.text,
this.onPerformAction,
@experimental this.customLeadingBlockBuilder,
});