PlanDayGrid class

Paginated grid of every day in the plan. rowsPerPage × columns cells per page; prev/next pagination if the plan extends beyond one page. Auto-advances to the page containing the controller's selected day. Renders an "+ Add another week" button on the last page that calls onExtend (or controller.extendBy(7) by default). Set allowExtend to false to hide the button entirely (e.g. read-only overview surfaces where extending the plan is not appropriate).

Inheritance

Constructors

PlanDayGrid({Key? key, required PlanCalendarController controller, required VooCalendarTheme theme, ValueChanged<int>? onDayTap, int columns = 7, int rowsPerPage = 4, VoidCallback? onExtend, bool allowExtend = true, EdgeInsetsGeometry? padding, double cellSpacing = 4, double cellAspectRatio = 0.85, bool compactCells = false})
const

Properties

allowExtend → bool
final
cellAspectRatio → double
Aspect ratio of each grid cell.
final
cellSpacing → double
Spacing applied to both axes of the grid (mainAxisSpacing and crossAxisSpacing on the underlying GridView).
final
columns → int
final
compactCells → bool
When false (default), grid cells render the full PlanDayChip variant (weekday + day number) for visual consistency with PlanDayStrip. Set to true to use the compact variant (day number only, no weekday subtitle) for a denser grid; pair with a wider cellAspectRatio (e.g. 1.05).
final
controller → PlanCalendarController
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDayTap → ValueChanged<int>?
final
onExtend → VoidCallback?
final
padding → EdgeInsetsGeometry?
Outer padding around the grid. Defaults to EdgeInsets.symmetric(horizontal: spacingMd, vertical: 6) resolved from the host's vooDesign when null — matching the strip view exactly.
final
rowsPerPage → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
theme → VooCalendarTheme
final

Methods

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