QuillRawEditorConfig constructor
const
QuillRawEditorConfig({
- required FocusNode focusNode,
- required ScrollController scrollController,
- required double scrollBottomInset,
- required CursorStyle cursorStyle,
- required Color selectionColor,
- required TextSelectionControls selectionCtrls,
- required EmbedsBuilder embedBuilder,
- required TextSpanBuilder textSpanBuilder,
- required bool autoFocus,
- List<
CharacterShortcutEvent> characterShortcutEvents = const [], - List<
SpaceShortcutEvent> spaceShortcutEvents = const [], - @experimental KeyEventResult? onKeyPressed()?,
- bool showCursor = true,
- bool scrollable = true,
- EdgeInsetsGeometry padding = EdgeInsets.zero,
- bool readOnly = false,
- bool? checkBoxReadOnly,
- bool disableClipboard = false,
- String? placeholder,
- ValueChanged<
String> ? onLaunchUrl, - QuillEditorContextMenuBuilder? contextMenuBuilder = defaultContextMenuBuilder,
- bool showSelectionHandles = false,
- TextCapitalization textCapitalization = TextCapitalization.none,
- double? maxHeight,
- double? minHeight,
- double? maxContentWidth,
- DefaultStyles? customStyles,
- Map<
ShortcutActivator, Intent> ? customShortcuts, - Map<
Type, Action< ? customActions,Intent> > - bool expands = false,
- bool onTapOutsideEnabled = true,
- bool enableAlwaysIndentOnTab = false,
- dynamic onTapOutside(
- PointerDownEvent event,
- FocusNode focusNode
- Brightness? keyboardAppearance,
- bool enableInteractiveSelection = true,
- ScrollPhysics? scrollPhysics,
- LinkActionPickerDelegate linkActionPickerDelegate = defaultLinkActionPickerDelegate,
- CustomStyleBuilder? customStyleBuilder,
- CustomRecognizerBuilder? customRecognizerBuilder,
- bool floatingCursorDisabled = false,
- List<
String> customLinkPrefixes = const <String>[], - QuillDialogTheme? dialogTheme,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- TextInputAction textInputAction = TextInputAction.newline,
- bool requestKeyboardFocusOnCheckListChanged = false,
- bool enableScribble = false,
- void onScribbleActivated()?,
- EdgeInsets? scribbleAreaInsets,
- MouseCursor readOnlyMouseCursor = SystemMouseCursors.text,
- void onPerformAction(
- TextInputAction action
- @experimental LeadingBlockNodeBuilder? customLeadingBuilder,
- QuillMagnifierBuilder? quillMagnifierBuilder,
Implementation
const QuillRawEditorConfig({
required this.focusNode,
required this.scrollController,
required this.scrollBottomInset,
required this.cursorStyle,
required this.selectionColor,
required this.selectionCtrls,
required this.embedBuilder,
required this.textSpanBuilder,
required this.autoFocus,
this.characterShortcutEvents = const [],
this.spaceShortcutEvents = const [],
@experimental this.onKeyPressed,
this.showCursor = true,
this.scrollable = true,
this.padding = EdgeInsets.zero,
this.readOnly = false,
this.checkBoxReadOnly,
this.disableClipboard = false,
this.placeholder,
this.onLaunchUrl,
this.contextMenuBuilder = defaultContextMenuBuilder,
this.showSelectionHandles = false,
this.textCapitalization = TextCapitalization.none,
this.maxHeight,
this.minHeight,
this.maxContentWidth,
this.customStyles,
this.customShortcuts,
this.customActions,
this.expands = false,
this.onTapOutsideEnabled = true,
this.enableAlwaysIndentOnTab = false,
this.onTapOutside,
this.keyboardAppearance,
this.enableInteractiveSelection = true,
this.scrollPhysics,
this.linkActionPickerDelegate = defaultLinkActionPickerDelegate,
this.customStyleBuilder,
this.customRecognizerBuilder,
this.floatingCursorDisabled = false,
this.customLinkPrefixes = const <String>[],
this.dialogTheme,
this.contentInsertionConfiguration,
this.textInputAction = TextInputAction.newline,
this.requestKeyboardFocusOnCheckListChanged = false,
this.enableScribble = false,
this.onScribbleActivated,
this.scribbleAreaInsets,
this.readOnlyMouseCursor = SystemMouseCursors.text,
this.onPerformAction,
@experimental this.customLeadingBuilder,
this.quillMagnifierBuilder,
});