mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-05 23:44:02 +01:00
Build heatmap test days as calendar days
This commit is contained in:
@@ -277,7 +277,9 @@ void main() {
|
||||
// for a grid of days would collapse whole weeks into a single cell
|
||||
final many = [
|
||||
for (var i = 0; i < 300; i++)
|
||||
MeasurementChartEntry(60 + i % 7, DateTime(2026, 1, 1).add(Duration(days: i))),
|
||||
// calendar days, not 24h steps: across a DST switch those would
|
||||
// shift to 23:00 of the previous day and two entries share a day
|
||||
MeasurementChartEntry(60 + i % 7, DateTime(2026, 1, 1 + i)),
|
||||
];
|
||||
final widget = buildChartForMetricType(
|
||||
MetricType.custom,
|
||||
|
||||
Reference in New Issue
Block a user