CalendarHeatmap constructor
const
CalendarHeatmap({
- Key? key,
- required Map<
DateTime, double> data, - required DateTime startDate,
- required DateTime endDate,
- required double minValue,
- required double maxValue,
- Color emptyColor = const Color(0xFFEBEDF0),
- Color startColor = const Color(0xFF9BE9A8),
- Color endColor = const Color(0xFF216E39),
- double cellSize = 12,
- double cellPadding = 2,
- double cellRadius = 2,
- bool showMonthLabels = true,
- bool showDayLabels = true,
- void onCellTap()?,
Implementation
const CalendarHeatmap({
super.key,
required this.data,
required this.startDate,
required this.endDate,
required this.minValue,
required this.maxValue,
this.emptyColor = const Color(0xFFEBEDF0),
this.startColor = const Color(0xFF9BE9A8),
this.endColor = const Color(0xFF216E39),
this.cellSize = 12,
this.cellPadding = 2,
this.cellRadius = 2,
this.showMonthLabels = true,
this.showDayLabels = true,
this.onCellTap,
});