flutter_heatmap_calendar
flutter_heatmap_calendar copied to clipboard
Possible bug when widget updates
Awesome package! Thanks!
I am using the HeatMapCalendar, but sometimes when it updates, values disappear and dates are shifted by one. Can someone help me or it is a known bug?
Thanks!
Yeah, the state doesn't load the data properly. Sometimes it's there and sometimes it doesn't.
Appears to be caused by a typo in TimeUtils...
/// Returns date without timezone info (UTC format)
static DateTime removeTZ(DateTime dateTime) {
return DateTime.utc(dateTime.year, dateTime.month, dateTime.day, dateTime.hour, dateTime.minute,
dateTime.second, dateTime.millisecond, dateTime.millisecond); <<<< should be dateTime.microsecond
}
That's it!