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
Properties
- allDay → bool
-
Whether this widget is an all-day chip rather than a timed event:
falsefor the timed-event overlay (#78),truefor the all-day-chip overlay (#80). A host that wires one builder to bothentryBuilderandallDayEntryBuilderbranches 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 carriescolumnIndex: 0,columnCount: 1,dragType: DragType.noneandisDragged: 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
screenRectsize, i.e. its (possibly overlap-narrowed) width anddurationInHours * blockHeight * zoomheight. Detail-shedding builders key their thresholds onsize.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