CalendarStyle constructor
const
CalendarStyle({
- TextStyle dayStyle = const TextStyle(),
- TextStyle selectedStyle = const TextStyle(color: Color(0xFFFAFAFA), fontSize: 16.0),
- TextStyle todayStyle = const TextStyle(color: Color(0xFFFAFAFA), fontSize: 16.0),
- Color selectedColor = const Color(0xFF5C6BC0),
- Color todayColor = const Color(0xFF9FA8DA),
- bool renderDaysOfWeek = true,
- EdgeInsets contentPadding = const EdgeInsets.only(bottom: 4.0, left: 8.0, right: 8.0),
- bool highlightSelected = true,
- bool highlightToday = true,
- Color weekEndTextColor = Colors.red,
Implementation
const CalendarStyle({
this.dayStyle = const TextStyle(),
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.unavailableStyle = const TextStyle(color: Color(0xFFBFBFBF)),
this.selectedColor = const Color(0xFF5C6BC0), // Material indigo[400]
this.todayColor = const Color(0xFF9FA8DA), // Material indigo[200]
this.renderDaysOfWeek = true,
this.contentPadding =
const EdgeInsets.only(bottom: 4.0, left: 8.0, right: 8.0),
this.highlightSelected = true,
this.highlightToday = true,
this.weekEndTextColor = Colors.red,
});