CalendarStyle class

Class containing styling and configuration for TableCalendar's content.

Constructors

CalendarStyle({bool isTodayHighlighted = true, bool outsideDaysVisible = true, EdgeInsets cellMargin = const EdgeInsets.all(6.0), EdgeInsets cellPadding = const EdgeInsets.all(0), AlignmentGeometry cellAlignment = Alignment.center, TextStyle todayTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0), Decoration todayDecoration = const BoxDecoration(color: const Color(0xFF9FA8DA), shape: BoxShape.rectangle), TextStyle selectedTextStyle = const TextStyle(color: const Color(0xFFFAFAFA), fontSize: 16.0), Decoration selectedDecoration = const BoxDecoration(color: const Color(0xFF5C6BC0), shape: BoxShape.rectangle), TextStyle outsideTextStyle = const TextStyle(color: const Color(0xFFAEAEAE)), Decoration outsideDecoration = const BoxDecoration(shape: BoxShape.rectangle), TextStyle weekendTextStyle = const TextStyle(color: const Color(0xFF5A5A5A)), Decoration weekendDecoration = const BoxDecoration(shape: BoxShape.rectangle), TextStyle defaultTextStyle = const TextStyle(), Decoration defaultDecoration = const BoxDecoration(shape: BoxShape.rectangle), Decoration rowDecoration = const BoxDecoration(), TableBorder tableBorder = const TableBorder()})
Creates a CalendarStyle used by TableCalendar widget.
const

Properties

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
hashCode int
The hash code for this object.
no setterinherited
isTodayHighlighted bool
Determines if a day cell that matches the current day should be highlighted.
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
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
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

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