You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// BUG: avoiding all 0 bug in flutter heatmap// https://github.com/devappmin/flutter_heatmap_calendar/issues/11bool allZero = records.values.every((value) => value ==0);
Color color;
if (allZero) {
// change all values to 1, because all zeros breaks// we'll set color to white so it looks empty
color =Colors.white;
records = records.map((key, value) =>MapEntry(key, 1));
} else {
// Otherwise, set the color to red
color =Colors.red;
}
The text was updated successfully, but these errors were encountered: