CalendarStyle constructor

const CalendarStyle({
  1. BoxDecoration contentDecoration = const BoxDecoration(),
  2. TextStyle weekdayStyle = const TextStyle(),
  3. TextStyle weekendStyle = const TextStyle(color: Color(0xFFF44336)),
  4. TextStyle holidayStyle = const TextStyle(color: Color(0xFFF44336)),
  5. TextStyle selectedStyle = const TextStyle(color: Color(0xFFFAFAFA), fontSize: 16.0),
  6. TextStyle todayStyle = const TextStyle(color: Color(0xFFFAFAFA), fontSize: 16.0),
  7. TextStyle outsideStyle = const TextStyle(color: Color(0xFF9E9E9E)),
  8. TextStyle outsideWeekendStyle = const TextStyle(color: Color(0xFFEF9A9A)),
  9. TextStyle outsideHolidayStyle = const TextStyle(color: Color(0xFFEF9A9A)),
  10. TextStyle unavailableStyle = const TextStyle(color: Color(0xFFBFBFBF)),
  11. TextStyle eventDayStyle = const TextStyle(),
  12. Color selectedColor = const Color(0xFF5C6BC0),
  13. Color todayColor = const Color(0xFF9FA8DA),
  14. Color markersColor = const Color(0xFF263238),
  15. Alignment markersAlignment = Alignment.bottomCenter,
  16. double? markersPositionTop,
  17. double markersPositionBottom = 5.0,
  18. double? markersPositionLeft,
  19. double? markersPositionRight,
  20. int markersMaxAmount = 4,
  21. bool outsideDaysVisible = true,
  22. bool renderSelectedFirst = true,
  23. bool renderDaysOfWeek = true,
  24. EdgeInsetsGeometry contentPadding = const EdgeInsets.only(bottom: 4.0, left: 8.0, right: 8.0),
  25. EdgeInsetsGeometry cellMargin = const EdgeInsets.all(6.0),
  26. bool canEventMarkersOverflow = false,
  27. bool highlightSelected = true,
  28. 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,
});