QuillRawEditorConfig class
Constructors
-
QuillRawEditorConfig.new({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(KeyEvent event, Node? node)?, bool showCursor = true, bool scrollable = true, EdgeInsetsGeometry padding = EdgeInsets.zero, bool readOnly = false, bool? checkBoxReadOnly, bool disableClipboard = false, String? placeholder, ValueChanged<String>? onLaunchUrl, bool showSelectionHandles = false, TextCapitalization textCapitalization = TextCapitalization.none, double? maxHeight, double? minHeight, double? maxContentWidth, DefaultStyles? customStyles, Map<ShortcutActivator, Intent>? customShortcuts, Map<Type, Action<Intent>>? customActions, 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})
-
const
Properties
-
autoFocus
→ bool
-
Whether this editor should focus itself if nothing else is already
focused.
final
-
characterShortcutEvents
→ List<CharacterShortcutEvent>
-
Contains all the events that will be handled when
the exact characters satifies the condition. This mean
if you press asterisk key, if you have a
CharacterShortcutEvent
with
the asterisk then that event will be handled
final
-
checkBoxReadOnly
→ bool?
-
Override readOnly for checkbox.
final
-
contentInsertionConfiguration
→ ContentInsertionConfiguration?
-
Configuration of handler for media content inserted via the system input
method.
final
-
Builds the text selection toolbar when requested by the user.
final
-
cursorStyle
→ CursorStyle
-
The style to be used for the editing cursor.
final
-
customActions
→ Map<Type, Action<Intent>>?
-
Contains user-defined actions.
final
-
customLeadingBuilder
→ LeadingBlockNodeBuilder?
-
final
-
customLinkPrefixes
→ List<String>
-
final
-
customRecognizerBuilder
→ CustomRecognizerBuilder?
-
final
-
customShortcuts
→ Map<ShortcutActivator, Intent>?
-
Contains user-defined shortcuts map.
final
-
customStyleBuilder
→ CustomStyleBuilder?
-
final
-
customStyles
→ DefaultStyles?
-
Allows to override DefaultStyles.
final
-
dialogTheme
→ QuillDialogTheme?
-
Configures the dialog theme.
final
-
disableClipboard
→ bool
-
Disable Clipboard features
final
-
embedBuilder
→ EmbedsBuilder
-
Builder function for embeddable objects.
final
-
enableAlwaysIndentOnTab
→ bool
-
Enables always indenting when the TAB key is pressed.
final
-
enableInteractiveSelection
→ bool
-
If true, then long-pressing this TextField will select text and show the
cut/copy/paste menu, and tapping will move the text caret.
final
-
enableScribble
→ bool
-
Enable Scribble? Currently Apple Pencil only, defaults to false.
final
-
expands
→ bool
-
Whether this widget's height will be sized to fill its parent.
final
-
floatingCursorDisabled
→ bool
-
final
-
focusNode
→ FocusNode
-
Controls whether this editor has keyboard focus.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
keyboardAppearance
→ Brightness?
-
The appearance of the keyboard.
final
-
linkActionPickerDelegate
→ LinkActionPickerDelegate
-
final
-
maxContentWidth
→ double?
-
The maximum width to be occupied by the content of this editor.
final
-
maxHeight
→ double?
-
The maximum height this editor can have.
final
-
minHeight
→ double?
-
The minimum height this editor can have.
final
-
onKeyPressed
→ KeyEventResult? Function(KeyEvent event, Node? node)?
-
A handler for keys that are pressed when the editor is focused.
final
-
onLaunchUrl
→ ValueChanged<String>?
-
Callback which is triggered when the user wants to open a URL from
a link in the document.
final
-
onPerformAction
→ void Function(TextInputAction action)?
-
Called when a text input action is performed.
final
-
onScribbleActivated
→ void Function()?
-
Called when Scribble is activated.
final
-
onTapOutside
→ dynamic Function(PointerDownEvent event, FocusNode focusNode)?
-
By default on non-mobile platforms, the editor will unfocus.
final
-
onTapOutsideEnabled
→ bool
-
Whether the onTapOutside should be triggered or not.
final
-
padding
→ EdgeInsetsGeometry
-
Additional space around the editor contents.
final
-
placeholder
→ String?
-
final
-
quillMagnifierBuilder
→ QuillMagnifierBuilder?
-
Used to build the QuillMagnifier when long-pressing/dragging selection
final
-
readOnly
→ bool
-
Whether the text can be changed.
final
-
readOnlyMouseCursor
→ MouseCursor
-
The readOnlyMouseCursor is used for Windows, macOS when readOnly is
true
final
-
requestKeyboardFocusOnCheckListChanged
→ bool
-
When there is a change the check list values
should we request keyboard focus??
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
scribbleAreaInsets
→ EdgeInsets?
-
Optional insets for the scribble area.
final
-
scrollable
→ bool
-
final
-
scrollBottomInset
→ double
-
final
-
scrollController
→ ScrollController
-
final
-
scrollPhysics
→ ScrollPhysics?
-
The ScrollPhysics to use when vertically scrolling the input.
final
-
selectionColor
→ Color
-
The color to use when painting the selection.
final
-
selectionCtrls
→ TextSelectionControls
-
Delegate for building the text selection handles and toolbar.
final
-
selectionEnabled
→ bool
-
no setter
-
showCursor
→ bool
-
Whether to show cursor.
final
-
showSelectionHandles
→ bool
-
Whether to show selection handles.
final
-
spaceShortcutEvents
→ List<SpaceShortcutEvent>
-
Contains all the events that will be handled when
space key is pressed
final
-
textCapitalization
→ TextCapitalization
-
Configures how the platform keyboard will select an uppercase or
lowercase keyboard.
final
-
textInputAction
→ TextInputAction
-
final
-
textSpanBuilder
→ TextSpanBuilder
-
Used to build the InlineSpans containing text content.
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited