CalendarStyle constructor
const
CalendarStyle({
- BoxDecoration contentDecoration = const BoxDecoration(),
- TextStyle weekdayStyle = const TextStyle(),
- TextStyle weekendStyle = const TextStyle(color: Color(0xFFF44336)),
- TextStyle holidayStyle = const TextStyle(color: Color(0xFFF44336)),
- TextStyle selectedStyle = const TextStyle(color: Color(0xFFFAFAFA), fontSize: 16.0),
- TextStyle todayStyle = const TextStyle(color: Color(0xFFFAFAFA), fontSize: 16.0),
- TextStyle outsideStyle = const TextStyle(color: Color(0xFF9E9E9E)),
- TextStyle outsideWeekendStyle = const TextStyle(color: Color(0xFFEF9A9A)),
- TextStyle outsideHolidayStyle = const TextStyle(color: Color(0xFFEF9A9A)),
- TextStyle eventDayStyle = const TextStyle(),
- Color selectedColor = const Color(0xFF5C6BC0),
- Color todayColor = const Color(0xFF9FA8DA),
- Color markersColor = const Color(0xFF263238),
- Alignment markersAlignment = Alignment.bottomCenter,
- double? markersPositionTop,
- double markersPositionBottom = 5.0,
- double? markersPositionLeft,
- double? markersPositionRight,
- int markersMaxAmount = 4,
- bool outsideDaysVisible = true,
- bool renderSelectedFirst = true,
- bool renderDaysOfWeek = true,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.only(bottom: 4.0, left: 8.0, right: 8.0),
- EdgeInsetsGeometry cellMargin = const EdgeInsets.all(6.0),
- bool canEventMarkersOverflow = false,
- bool highlightSelected = true,
- bool highlightToday = true,
Implementation
const CalendarStyle({
this.contentDecoration = const BoxDecoration(),
this.weekdayStyle = const TextStyle(),
this.weekendStyle =
const TextStyle(color: Color(0xFFF44336)), // Material red[500]
this.holidayStyle =
const TextStyle(color: Color(0xFFF44336)), // Material red[500]
this.selectedStyle = const TextStyle(
color: Color(0xFFFAFAFA), fontSize: 16.0), // Material grey[50]
this.todayStyle = const TextStyle(
color: Color(0xFFFAFAFA), fontSize: 16.0), // Material grey[50]
this.outsideStyle =
const TextStyle(color: Color(0xFF9E9E9E)), // Material grey[500]
this.outsideWeekendStyle =
const TextStyle(color: Color(0xFFEF9A9A)), // Material red[200]
this.outsideHolidayStyle =
const TextStyle(color: Color(0xFFEF9A9A)), // Material red[200]
this.unavailableStyle = const TextStyle(color: Color(0xFFBFBFBF)),
this.eventDayStyle = const TextStyle(),
this.selectedColor = const Color(0xFF5C6BC0), // Material indigo[400]
this.todayColor = const Color(0xFF9FA8DA), // Material indigo[200]
this.markersColor = const Color(0xFF263238), // Material blueGrey[900]
this.markersAlignment = Alignment.bottomCenter,
this.markersPositionTop,
this.markersPositionBottom = 5.0,
this.markersPositionLeft,
this.markersPositionRight,
this.markersMaxAmount = 4,
this.outsideDaysVisible = true,
this.renderSelectedFirst = true,
this.renderDaysOfWeek = true,
this.contentPadding =
const EdgeInsets.only(bottom: 4.0, left: 8.0, right: 8.0),
this.cellMargin = const EdgeInsets.all(6.0),
this.canEventMarkersOverflow = false,
this.highlightSelected = true,
this.highlightToday = true,
});