Controller<T> class

Constructors

Controller(PlannerConfig<T> config)

Properties

config PlannerConfig<T>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
The entry the entry-menu (edit/delete) acts on. A PlannerEntry rather than an Event so the same menu serves both timed events and all-day chips (#72) — both carry a PlannerEntry, which is all edit/delete need.
getter/setter pair
The menu's top-left position in planner-local coordinates (the whole widget's box), so the single overlay can sit over either the time grid or the all-day band (#72). The widget layer converts each surface's local hit position into this space before calling showEventMenu/showPlannerMenu.
getter/setter pair
getter/setter pair
getter/setter pair
offset Offset
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
triggerUpdate ValueNotifier<int>
final
x double
getter/setter pair
y double
getter/setter pair
zoom double
no setter

Methods

hideMenu() → void
horizontalScroll(bool forward) → void
Scrolls the day-axis by one wheel notch — the Shift+wheel horizontal scroll (#65). forward (a wheel-down notch) reveals later columns by decreasing x; the reverse reveals earlier ones. The step is the flat PlannerConfig.scrollStep: unlike the time axis, columns are a fixed PlannerConfig.blockWidth wide and don't scale with zoom, so a notch always moves the same distance. Clamped to the same [_maxXOffset, _minXOffset] bounds as a horizontal drag, so it can't reveal past the grid edges.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setReservedHeight(double height) → void
Records the height of the chrome reserved above the time grid besides the date row — the all-day band (#48). Recomputes the scroll clamp so the grid viewport excludes the band. A no-op when the height is unchanged.
setSize(Size? size) → void
showEventMenu(Offset pos, PlannerEntry<T> entry, Function onClose) → void
Opens the entry menu (edit/delete) for entry at planner-local pos. The caller (timed grid or all-day band) passes the chip's/event's PlannerEntry, so the same menu serves both surfaces (#72).
showPlannerMenu(Offset pos, PlannerTime time, Function onClose) → void
startHorizontalDrag(double xValue) → void
startVerticalDrag(double yValue) → void
startZoom() → void
toString() String
A string representation of this object.
inherited
updateConfig(PlannerConfig<T> config) → void
Adopts a new config (e.g. when the host Planner is rebuilt with different settings) and recomputes the scroll bounds, while leaving the current scroll/zoom position untouched.
updateHorizontalDrag(double xValue) → void
updateVerticalDrag(double yValue) → void
updateZoom(double scale) → void
verticalScroll(bool up) → void

Operators

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