CalendarStyle class

Class containing styling and configuration for TableCalendar's content.

Constructors

CalendarStyle({bool isTodayHighlighted = true, bool canMarkersOverflow = true, bool outsideDaysVisible = true, bool markersAutoAligned = true, double? markerSize, double markerSizeScale = 0.2, double markersAnchor = 0.7, double rangeHighlightScale = 1.0, EdgeInsets markerMargin = const EdgeInsets.symmetric(horizontal: 0.3), AlignmentGeometry markersAlignment = Alignment.bottomCenter, int markersMaxCount = 4, EdgeInsets cellMargin = const EdgeInsets.all(6.0), EdgeInsets cellPadding = const EdgeInsets.all(0), AlignmentGeometry cellAlignment = Alignment.center, PositionedOffset markersOffset = const PositionedOffset(), Color rangeHighlightColor = const Color(0xFFBBDDFF), Decoration markerDecoration = const BoxDecoration(color: const Color(0xFF263238), shape: BoxShape.circle), TextStyle todayTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0), Decoration todayDecoration = const BoxDecoration(color: const Color(0xFF9FA8DA), shape: BoxShape.circle), TextStyle selectedTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0), Decoration selectedDecoration = const BoxDecoration(color: const Color(0xFF5C6BC0), shape: BoxShape.circle), TextStyle rangeStartTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0), Decoration rangeStartDecoration = const BoxDecoration(color: const Color(0xFF6699FF), shape: BoxShape.circle), TextStyle rangeEndTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0), Decoration rangeEndDecoration = const BoxDecoration(color: const Color(0xFF6699FF), shape: BoxShape.circle), TextStyle withinRangeTextStyle = const TextStyle(), Decoration withinRangeDecoration = const BoxDecoration(shape: BoxShape.circle), TextStyle outsideTextStyle = const TextStyle(color: const Color(0xFFAEAEAE)), Decoration outsideDecoration = const BoxDecoration(shape: BoxShape.circle), TextStyle disabledTextStyle = const TextStyle(color: const Color(0xFFBFBFBF)), Decoration disabledDecoration = const BoxDecoration(shape: BoxShape.circle), TextStyle holidayTextStyle = const TextStyle(color: const Color(0xFF5C6BC0)), Decoration holidayDecoration = const BoxDecoration(border: const Border.fromBorderSide(const BorderSide(color: const Color(0xFF9FA8DA), width: 1.4)), shape: BoxShape.circle), TextStyle weekendTextStyle = const TextStyle(color: const Color(0xFF5A5A5A)), Decoration weekendDecoration = const BoxDecoration(shape: BoxShape.circle), TextStyle weekNumberTextStyle = const TextStyle(fontSize: 12, color: const Color(0xFFBFBFBF)), TextStyle defaultTextStyle = const TextStyle(), Decoration defaultDecoration = const BoxDecoration(shape: BoxShape.circle), Decoration rowDecoration = const BoxDecoration(), TableBorder tableBorder = const TableBorder(), EdgeInsets tablePadding = const EdgeInsets.all(0)})
Creates a CalendarStyle used by TableCalendar widget.
const

Properties

canMarkersOverflow bool
Specifies if event markers rendered for a day cell can overflow cell's boundaries.
final
cellAlignment AlignmentGeometry
Alignment of each individual day cell.
final
cellMargin EdgeInsets
Margin of each individual day cell.
final
cellPadding EdgeInsets
Padding of each individual day cell.
final
defaultDecoration Decoration
Decoration for day cells that do not match any other styles.
final
defaultTextStyle TextStyle
TextStyle for day cells that do not match any other styles.
final
disabledDecoration Decoration
Decoration for day cells that have been disabled.
final
disabledTextStyle TextStyle
TextStyle for day cells that have been disabled.
final
hashCode int
The hash code for this object.
no setterinherited
holidayDecoration Decoration
Decoration for day cells that are marked as holidays by holidayPredicate.
final
holidayTextStyle TextStyle
TextStyle for day cells that are marked as holidays by holidayPredicate.
final
isTodayHighlighted bool
Determines if a day cell that matches the current day should be highlighted.
final
markerDecoration Decoration
Decoration of single event markers. Affects each marker dot.
final
markerMargin EdgeInsets
Margin of single event markers. Affects each marker dot.
final
markersAlignment AlignmentGeometry
General Alignment for event markers. Will have no effect on markers if markersAutoAligned or markersOffset is used.
final
markersAnchor double
Specifies the anchor point of single event markers if markersAutoAligned is true. A value of 0.5 will center the markers at the bottom edge of day cell's decoration.
final
markersAutoAligned bool
Determines if single event marker dots should be aligned automatically with markersAnchor. If false, markersOffset will be used instead.
final
markerSize double?
The size of single event marker dot.
final
markerSizeScale double
Proportion of single event marker dot size in relation to day cell size.
final
markersMaxCount int
Maximum amount of single event marker dots to be displayed.
final
markersOffset PositionedOffset
PositionedOffset for event markers. Allows to specify top, bottom, start and end.
final
outsideDaysVisible bool
Determines if day cells that do not match the currently focused month should be visible.
final
outsideDecoration Decoration
Decoration for day cells, of which the day.month is different than focusedDay.month. This will affect day cells that do not match the currently focused month.
final
outsideTextStyle TextStyle
TextStyle for day cells, of which the day.month is different than focusedDay.month. This will affect day cells that do not match the currently focused month.
final
rangeEndDecoration Decoration
Decoration for a day cell that is the end of current range selection.
final
rangeEndTextStyle TextStyle
TextStyle for a day cell that is the end of current range selection.
final
rangeHighlightColor Color
Color of range selection highlight.
final
rangeHighlightScale double
Proportion of range selection highlight size in relation to day cell size.
final
rangeStartDecoration Decoration
Decoration for a day cell that is the start of current range selection.
final
rangeStartTextStyle TextStyle
TextStyle for a day cell that is the start of current range selection.
final
rowDecoration Decoration
Decoration for each interior row of day cells.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDecoration Decoration
Decoration for day cells that are currently marked as selected by selectedDayPredicate.
final
selectedTextStyle TextStyle
TextStyle for day cells that are currently marked as selected by selectedDayPredicate.
final
tableBorder TableBorder
Border for the internal Table widget.
final
tablePadding EdgeInsets
Padding for the internal Table widget.
final
todayDecoration Decoration
Decoration for a day cell that matches the current day.
final
todayTextStyle TextStyle
TextStyle for a day cell that matches the current day.
final
weekendDecoration Decoration
Decoration for day cells that match weekendDay list.
final
weekendTextStyle TextStyle
TextStyle for day cells that match weekendDay list.
final
weekNumberTextStyle TextStyle
TextStyle for week number.
final
withinRangeDecoration Decoration
Decoration for day cells that fall within the currently selected range.
final
withinRangeTextStyle TextStyle
TextStyle for day cells that fall within the currently selected range.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited