CalendarDateCell class

A widget that represents a single selectable day cell in a calendar grid.

CalendarDateCell determines its decoration and content based on:

  • Whether it's part of a marked list (MarkedDaysModel)
  • Whether it is picked by the user
  • Whether it lies within a selected range (if enabled)

It supports both single and range selections, with custom styling options.

Inheritance

Constructors

CalendarDateCell.new({Key? key, required int i, BoxDecoration? defaultDecoration, Widget? defaultChild, Widget? userSelectedItemStyle, BoxDecoration? userPickedDecoration, Widget? userPickedChild, EdgeInsets? cellPadding})
Creates a date cell for the calendar with customizable styling and content.
const

Properties

cellPadding EdgeInsets?
Padding applied to the cell content.
final
defaultChild Widget?
Default widget displayed inside the cell when not marked or picked.
final
defaultDecoration BoxDecoration?
Default decoration applied when the cell is not marked or picked.
final
hashCode int
The hash code for this object.
no setterinherited
i int
The day of the month represented by this cell (1-based index).
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userPickedChild Widget?
Custom widget displayed when the cell is picked by the user.
final
userPickedDecoration BoxDecoration?
Custom decoration when the cell is picked by the user.
final
userSelectedItemStyle Widget?
Widget displayed when this cell is user-selected (picked or in range).
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.
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