CalendarHeatmap constructor

const CalendarHeatmap({
  1. Key? key,
  2. required Map<DateTime, double> data,
  3. required DateTime startDate,
  4. required DateTime endDate,
  5. required double minValue,
  6. required double maxValue,
  7. Color emptyColor = const Color(0xFFEBEDF0),
  8. Color startColor = const Color(0xFF9BE9A8),
  9. Color endColor = const Color(0xFF216E39),
  10. double cellSize = 12,
  11. double cellPadding = 2,
  12. double cellRadius = 2,
  13. bool showMonthLabels = true,
  14. bool showDayLabels = true,
  15. void onCellTap(
    1. DateTime date,
    2. double? value
    )?,
})

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,
});