CalendarThemeData constructor
const
CalendarThemeData({
- Color primaryColor = const Color(0xFF2196F3),
- Color todayColor = const Color(0xFF2196F3),
- Color selectedColor = const Color(0xFF1976D2),
- Color rangeColor = const Color(0xFFBBDEFB),
- Color weekendColor = const Color(0xFFEF5350),
- Color disabledColor = const Color(0xFFBDBDBD),
- Color holidayColor = const Color(0xFFE91E63),
- Color backgroundColor = Colors.white,
- Color surfaceColor = const Color(0xFFF5F5F5),
- Color headerColor = const Color(0xFF212121),
- TextStyle dayTextStyle = const TextStyle(fontSize: 16),
- TextStyle lunarTextStyle = const TextStyle(fontSize: 10, color: Color(0xFF757575)),
- TextStyle headerTextStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.bold, color: Color(0xFF212121)),
- TextStyle weekdayTextStyle = const TextStyle(fontSize: 13, fontWeight: FontWeight.w500, color: Color(0xFF757575)),
- double cellRadius = 8,
- 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,
});