PlannerEntryLayout class

The on-screen layout facts handed to a PlannerEntryBuilder for one event (#78). Everything here is derived from the package's geometry for the current frame, so the builder can lay out responsively without recomputing it.

Constructors

PlannerEntryLayout({required Size size, required int columnIndex, required int columnCount, required bool isDragged, required DragType dragType, required bool allDay})
const

Properties

allDay → bool
Whether this widget is an all-day chip rather than a timed event: false for the timed-event overlay (#78), true for the all-day-chip overlay (#80). A host that wires one builder to both entryBuilder and allDayEntryBuilder branches on this to render a chip vs. a timed card. All-day chips don't sub-divide a column or drag, so their layout always carries columnIndex: 0, columnCount: 1, dragType: DragType.none and isDragged: false; the chip's stacking lane is already baked into size and the widget's on-screen position.
final
columnCount → int
final
columnIndex → int
Which sub-column this event occupies within its day-column, and how many sub-columns the day-column was split into for concurrent events (#20). A non-overlapping event is columnIndex: 0, columnCount: 1; overlapping events render side-by-side via these and the size width.
final
dragType → DragType
The live drag this event is undergoing (DragType.none when idle), so a builder can reflect a move vs. a top/bottom resize.
final
hashCode → int
The hash code for this object.
no setterinherited
isDragged → bool
Whether this event is the one currently being dragged or resized — a convenience for dragType != DragType.none.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Size
The widget's on-screen size — the event's screenRect size, i.e. its (possibly overlap-narrowed) width and durationInHours * blockHeight * zoom height. Detail-shedding builders key their thresholds on size.height (e.g. show avatars only above 92px).
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

Operators

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