CalendarStyle constructor

const CalendarStyle({
  1. TextStyle dayStyle = const TextStyle(),
  2. TextStyle selectedStyle = const TextStyle(color: Color(0xFFFAFAFA), fontSize: 16.0),
  3. TextStyle todayStyle = const TextStyle(color: Color(0xFFFAFAFA), fontSize: 16.0),
  4. TextStyle unavailableStyle = const TextStyle(color: Color(0xFFBFBFBF)),
  5. Color selectedColor = const Color(0xFF5C6BC0),
  6. Color todayColor = const Color(0xFF9FA8DA),
  7. bool renderDaysOfWeek = true,
  8. EdgeInsets contentPadding = const EdgeInsets.only(bottom: 4.0, left: 8.0, right: 8.0),
  9. bool highlightSelected = true,
  10. bool highlightToday = true,
  11. 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,
});