Fluent2WeekStrip class

One week as a row of days to pick from, the strip a phone's calendar heads its agenda with: seven equal cells, each the short weekday in caption1 (the third ink) over the day's number in a 32 circle and a 4 dot under it when hasEvents says the day holds something. The value day is the brand's fill with its number in the on-brand ink, strong; today (when not picked) has its number in the brand's ink, strong. The week shown is the one holding value, starting on firstDayOfWeek (Monday by default). A press picks a day through onChanged; with none it is inert. Derived: Fluent has no week strip; it is composed from its calendar's day button. Each day reads as a button, "Monday, November 3", selected when picked.

Fluent2WeekStrip(value: DateTime(2026, 11, 3), today: DateTime(2026, 11, 3), onChanged: (day) {})
Inheritance

Constructors

Fluent2WeekStrip({required DateTime value, ValueChanged<DateTime>? onChanged, DateTime? today, bool hasEvents(DateTime day)?, int firstDayOfWeek = DateTime.monday, Key? key})
A week strip holding value.
const

Properties

firstDayOfWeek → int
The weekday the week starts on, DateTime.monday to DateTime.sunday.
final
hasEvents → bool Function(DateTime day)?
Whether a day holds something (a meeting, a deadline); null marks none.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onChanged → ValueChanged<DateTime>?
Told the day pressed; null makes the strip inert.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
today → DateTime?
The day marked as today; null marks none.
final
value → DateTime
The day picked; its week is the one shown.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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.
override
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

weekOf(DateTime value, {int firstDayOfWeek = DateTime.monday}) → List<DateTime>
The seven days of the week holding value, from firstDayOfWeek.