novident_editor_selection library
Classes
- AnimatedSelectionAreaPaint
- A selection highlight widget that paints rectangles with an animated gradient. The gradient rotates continuously when withAnimation is true.
- AnimatedSelectionAreaPainter
- BlockSelectionArea
- BlockSelectionArea is a widget that renders the selection area or the cursor of a block.
- BlockSelectionContainer
- BlockSelectionContext
- Context passed to SelectionRenderer.buildBlockSelectionHighlight for painting block-level selection indicators.
- BlockSelectionHost
-
Host interface for BlockSelectionArea to query editor-level state
without depending on
EditorState. - Cursor
- CursorAppearance
- Describes custom cursor appearance provided by the host.
- CursorMeasureContext
-
Context passed to SelectionRenderer.onCursorRectMeasured after
the default cursor rect has been calculated. Return a different
Rect to override, or
nullto keep the default. - CursorMoveContext
- Context passed to movement methods like SelectionRenderer.onVerticalMove and SelectionRenderer.onHorizontalMove.
- CursorPaintContext
- Context passed to SelectionRenderer.buildCursor with everything needed to render a custom cursor widget.
- CursorState
- DefaultSelectionRenderer
- The default SelectionRenderer implementation that replicates the standard editor cursor and selection behavior exactly.
- FocusLifecycleContext
- Context passed to SelectionRenderer.onFocusGained and SelectionRenderer.onFocusLost when the editor gains or loses input focus.
- MoveAttemptContext
- Context passed to SelectionRenderer.onTryMove BEFORE a cursor movement happens. Provides both the current state and the target the editor would move to by default.
- MoveCompletedContext
- Context passed to SelectionRenderer.onMoveCompleted AFTER a cursor movement has finished.
- MoveIntention
- Returned by SelectionRenderer.onTryMove to control how the editor handles a cursor transition.
- RemoteBlockSelectionArea
- RemoteBlockSelectionArea is a widget that renders the selection area or the cursor of a block from remote.
- RemoteBlockSelectionsArea
- SelectionAreaPaint
- SelectionAreaPainter
- SelectionLifecycleContext
- Context passed to SelectionRenderer.onSelectionStarted and SelectionRenderer.onSelectionEnded when the user starts or finishes a selection drag.
- SelectionMeasureContext
-
Context passed to SelectionRenderer.onSelectionRectsMeasured
after the default selection rectangles have been calculated. Return
a different list to override, or
nullto keep the defaults. - SelectionPaintContext
- Context passed to SelectionRenderer.buildSelectionHighlight for painting text selection backgrounds.
- SelectionRenderer
- Full control over cursor and selection rendering, movement behavior, transition animations, and lifecycle events.
Enums
- BlockSelectionType
- The type of selection rendered by BlockSelectionArea.
- MobileSelectionDragMode
- MobileSelectionHandlerType
- MoveDirection
- Direction of a cursor or selection movement, triggered by user input (arrows, Home/End, PgUp/PgDn, Ctrl+arrows for word navigation).
- SelectionType
- SelectionUpdateReason
Constants
- selectionDragModeKey → const String