heatmap_calendar_plus 2.3.0
heatmap_calendar_plus: ^2.3.0 copied to clipboard
A customizable heatmap-style calendar widget for Flutter. Fork of flutter_heatmap_calendar, actively maintained with updates, bug fixes, and new features.
2.3.0 #
- Added dynamic-range month view: passing a non-null
endDatewithtype: HeatmapCalendarType.monthrenders the exactstartDate..endDaterange week-by-week (e.g. a financial period running15 Jun → 14 Jul), instead of falling back to the year heatmap. Fully non-breaking —endDatewas previously only honored for the year view, so existing month usage is unchanged. - Fixed
HeatMapCalendarnot reacting to prop changes: it now implementsdidUpdateWidget, so updatingstartDate,endDate, ortypefrom the parent re-syncs the grid. Previously the reference date was only read once ininitState, leaving the calendar showing stale dates after a rebuild. - Fixed opacity normalization for
week/biweekviews that cross a month boundary:maxValueis now computed from the visible range instead of the base date's calendar month. This removes a potential non-finite alpha (division by zero) crash inColorMode.opacity, plus an extra guard whenmaxValue <= 0. - Range header (
start – end) is now also shown for the dynamic-range month, and internal arrow navigation shifts by whole months to keep the period's day-of-month anchors (e.g.15 → 14) stable across months of differing length. - Internal cleanup: generalized the row empty-cell logic to pure week-alignment (supports rows that cross months) and de-duplicated
HeatMapCalendarPage._buildMonthViewto reuse the shared row builder.
2.2.0 #
- Added
cellStyleResolver(HeatMapCellStyleResolver) parameter toHeatMapCalendarandHeatMap. - Added
HeatMapCellStyleclass (exported from barrel) withcolorandtextColor(reserved) fields. - When
cellStyleResolverreturns aHeatMapCellStylewith a non-nullcolor, that color takes full priority over the globalcolorsets/ColorModelogic for that specific date. Returningnullfalls back to the default threshold-based behavior — fully non-breaking. - Works for all calendar types:
month,week,biweek, andyear. - Added
example/lib/pages/heatmap_cell_style_resolver_example.dartdemonstrating a green/red income-vs-expense use case.
2.1.0 #
- Fixed color alignment bug in
HeatMapColumnfor non-defaultweekStartsWithvalues. - Fixed null-safety crashes when
spacingwas not explicitly passed to internal widgets. - Added
typeparameter toHeatMapCalendarwithHeatmapCalendarTypeenum (week,biweek,month,year). Default ismonth— fully non-breaking. - Added
showText,endDate,scrollable, andreversedparameters toHeatMapCalendar. - Added
defaultLeftLabel/defaultRightLabelparameters toHeatMapColorTip(defaultnull— no labels rendered unless provided).
2.0.0 #
- Breaking change: Renamed the controller method
gotToDate()→goToDate(). - Fixed a typo in the method name for clarity and consistency.
1.0.0 #
- Initial release of
heatmap_calendar_plus(fork offlutter_heatmap_calendar). - Credits: Original work by Kim Seung Hwan (MIT). See
LICENSE. - Includes upstream improvements equivalent to
flutter_heatmap_calendar1.1.0 (TextStyle props, spacing/layout props, calendar enhancements, docs refresh). - Package rename, metadata updates (repository, homepage, issue tracker).
- New barrel import:
package:heatmap_calendar_plus/heatmap_calendar_plus.dart.
Upstream history (for reference from the original package):
1.0.5 #
- feat: Created the
onMonthChangecallback on theHeatMapCalendar. - fix: bug where app would have overflow crash if the start date was today.
1.0.4 #
- feat: Add option to customize font size of the month.
- fix: Fixed A Bug With Daylight Savings Resulting In Some Weeks Having 6 Days.
1.0.3 #
- fix:
RangeErrorwhen based day isSundayonHeatmap. - fix:
Wrong month text location erroronHeatmap.