CarpenterCalendar class final
Controlled month calendar used by date inputs and page-level scheduling UI.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CarpenterCalendar
Constructors
-
CarpenterCalendar({Key? key, DateTime? selected, required ValueChanged<
DateTime> onChanged, DateTime? firstDate, DateTime? lastDate, DateTime? initialMonth}) -
Creates a controlled date picker. The displayed month starts at
initialMonth, selected, or the current date in that order. Rebuild with
the date received by onChanged to update the selection. Date bounds are
inclusive and compare calendar dates, not times.
const
Properties
- firstDate → DateTime?
-
Inclusive earliest selectable date; null leaves the lower bound
unrestricted. Months wholly before this date cannot be reached with the
previous-month button.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialMonth → DateTime?
-
Month to display on first mount. Day and time components are discarded.
Subsequent changes do not reset navigation; use a new widget key when an
explicit reset is required.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lastDate → DateTime?
-
Inclusive latest selectable date; null leaves the upper bound
unrestricted. Months wholly after this date cannot be reached with the
next-month button.
final
-
onChanged
→ ValueChanged<
DateTime> -
Receives an enabled day selected by the user. The parent must store the
returned date and rebuild; this callback does not update selected
automatically.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → DateTime?
-
Date highlighted as selected, or null for no selection. Time-of-day is
ignored. Changing it after mounting does not navigate the displayed
month.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CarpenterCalendar> -
Creates the month-navigation state. Selection remains caller-owned while
the visible month is retained for this widget identity.
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