HeatmapRenderer class

Lays out and draws contributions as a GitHub-style contribution calendar.

Inheritance
Implemented types

Constructors

HeatmapRenderer({required List<ContributionData> contributions, Color? baseColor, Color? backgroundSquareColor})
Creates a renderer for contributions, with optional baseColor (the filled-day tint) and backgroundSquareColor (the empty-day square).

Properties

accessibilityLabel String
A short label naming the kind of chart, e.g. "Line chart", for semantics.
no setteroverride
accessibilityValue String
A value summarizing the chart's data — counts, range, a few points.
no setteroverride
backgroundSquareColor Color
The square color for empty days on dark themes.
final
baseColor Color
The tint for non-empty days, faded through intensity steps.
final
contributions List<ContributionData>
The per-day contribution entries to aggregate and draw.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildScene(Size size) ChartScene
Builds one PlotMark per drawn cell (a calendar day), so a tap on any square selects that day. Cell colors use the theme-agnostic palette.
override
draw(Canvas canvas, Size size, DrafterThemeColors theme, double progress) → void
Draws the chart. progress is the entrance reveal in 0..1 (1 = fully drawn).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited