LazyCanvas class

An infinite canvas that places all the children at the specified positions. Needs a LazyCanvasController to control the canvas and a CanvasBackground to draw the background.

Inheritance

Constructors

LazyCanvas({required LazyCanvasController controller, int mousePanButtons = kPrimaryMouseButton, CanvasChildId? foregroundChildId, TouchNavigationMode touchNavigationMode = TouchNavigationMode.oneFinger, ValueChanged<bool>? onTouchNavigationChanged, Widget viewportBuilder(BuildContext context, Widget viewport)?, void onPointerScroll(LazyCanvasController controller, Offset delta)?, Key? key})
const

Properties

controller → LazyCanvasController
final
foregroundChildId → CanvasChildId?
Temporarily paints and targets this child above the document stack. Does not change controller order or remount keyed child state.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mousePanButtons → int
final
onPointerScroll → void Function(LazyCanvasController controller, Offset delta)?
final
onTouchNavigationChanged → ValueChanged<bool>?
Reports two-finger ownership before raw down delivery or canvas movement. Remains true until all touches release, even after navigation freezes. Consumers must cancel their tool operation and suppress further tool input; raw events and child gestures are not automatically canceled.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
touchNavigationMode → TouchNavigationMode
Selects touch navigation for the next sequence; defaults to one finger.
final
viewportBuilder → Widget Function(BuildContext context, Widget viewport)?
Composes the viewport and app overlays inside the canvas gesture region. Keep the supplied viewport at the region's origin and original size.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<LazyCanvas>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited