Planner<T> class

Inheritance

Constructors

Planner({Key? key, required PlannerConfig<T> config, required List<PlannerEntry<T>> entries, PlannerController? controller, PlannerEntryBuilder<T>? entryBuilder, PlannerDayHeaderBuilder? dayHeaderBuilder, PlannerEntryBuilder<T>? allDayEntryBuilder})
const

Properties

allDayEntryBuilder → PlannerEntryBuilder<T>?
Optional builder for fully custom all-day chip widgets (#80) — the same hybrid overlay as entryBuilder, applied to the all-day band. When non-null the planner layers a widget overlay over the band canvas and calls this for every (on-screen) all-day chip, sizing/positioning the returned widget at the chip's current on-screen rect so it tracks the band's horizontal scroll; the band canvas then skips painting the default chip bodies (the per-chip accessibility semantics stay intact).
final
config → PlannerConfig<T>
final
controller → PlannerController?
Optional public handle for driving and observing zoom from outside the widget (#76) — e.g. a host's own zoom toolbar. When supplied it attaches to the planner's internal zoom/scroll controller for the life of this widget (and across a controller swap); when null, zoom is driven only by the built-in controls, pinch and Ctrl+wheel, exactly as before. Pair it with config.showZoomControls: false to replace the on-canvas buttons.
final
dayHeaderBuilder → PlannerDayHeaderBuilder?
Optional builder for fully custom day/column header widgets (#79). When non-null the planner replaces the painted DateRow text with a row of host-built header widgets — one per config.labels entry — each sized to the column's blockWidth and the date row's height, and offset by the live horizontal scroll so the headers track the day-columns below as the user pans (rebuilt on the same triggerUpdate the row repaints on).
final
entries → List<PlannerEntry<T>>
final
entryBuilder → PlannerEntryBuilder<T>?
Optional builder for fully custom timed-event widgets (#78). When non-null the planner layers a widget overlay over the events canvas and calls this for every on-screen event, sizing/positioning the returned widget at the event's current on-screen rect so it tracks scroll, zoom and drag in lockstep with the grid; the canvas then skips painting the default event bodies (the grid lines and accessibility semantics stay intact).
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<Planner<T>>
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