PlanDayMultiPicker class

A modal bottom sheet that lets the user pick multiple day-offsets from a paginated grid. Used by "Repeat on other days" flows in fitness/meal/workout plan editors. The user can extend the visible range with "+ Add another week" without ever scrolling a tall grid.

Inheritance

Constructors

PlanDayMultiPicker({Key? key, required int initialTotalDays, int? excludeDay, String title = 'Repeat on these days', String confirmLabel = 'Repeat', int columns = 7, int rowsPerPage = 4, Set<int> initialSelection = const <int>{}})
const

Properties

columns → int
final
confirmLabel → String
final
excludeDay → int?
final
hashCode → int
The hash code for this object.
no setterinherited
initialSelection → Set<int>
final
initialTotalDays → int
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
rowsPerPage → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
final

Methods

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

Static Methods

show(BuildContext context, {required int totalDays, int? excludeDay, String title = 'Repeat on these days', String confirmLabel = 'Repeat', Set<int> initialSelection = const <int>{}}) → Future<List<int>?>