CalendarThemeData constructor

const CalendarThemeData({
  1. Color primaryColor = const Color(0xFF2196F3),
  2. Color todayColor = const Color(0xFF2196F3),
  3. Color selectedColor = const Color(0xFF1976D2),
  4. Color rangeColor = const Color(0xFFBBDEFB),
  5. Color weekendColor = const Color(0xFFEF5350),
  6. Color disabledColor = const Color(0xFFBDBDBD),
  7. Color holidayColor = const Color(0xFFE91E63),
  8. Color backgroundColor = Colors.white,
  9. Color surfaceColor = const Color(0xFFF5F5F5),
  10. Color headerColor = const Color(0xFF212121),
  11. TextStyle dayTextStyle = const TextStyle(fontSize: 16),
  12. TextStyle lunarTextStyle = const TextStyle(fontSize: 10, color: Color(0xFF757575)),
  13. TextStyle headerTextStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.bold, color: Color(0xFF212121)),
  14. TextStyle weekdayTextStyle = const TextStyle(fontSize: 13, fontWeight: FontWeight.w500, color: Color(0xFF757575)),
  15. double cellRadius = 8,
  16. double cellPadding = 4,
})

Implementation

const CalendarThemeData({
  this.primaryColor = const Color(0xFF2196F3),
  this.todayColor = const Color(0xFF2196F3),
  this.selectedColor = const Color(0xFF1976D2),
  this.rangeColor = const Color(0xFFBBDEFB),
  this.weekendColor = const Color(0xFFEF5350),
  this.disabledColor = const Color(0xFFBDBDBD),
  this.holidayColor = const Color(0xFFE91E63),
  this.backgroundColor = Colors.white,
  this.surfaceColor = const Color(0xFFF5F5F5),
  this.headerColor = const Color(0xFF212121),
  this.dayTextStyle = const TextStyle(fontSize: 16),
  this.lunarTextStyle = const TextStyle(
    fontSize: 10,
    color: Color(0xFF757575),
  ),
  this.headerTextStyle = const TextStyle(
    fontSize: 18,
    fontWeight: FontWeight.bold,
    color: Color(0xFF212121),
  ),
  this.weekdayTextStyle = const TextStyle(
    fontSize: 13,
    fontWeight: FontWeight.w500,
    color: Color(0xFF757575),
  ),
  this.cellRadius = 8,
  this.cellPadding = 4,
});