Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/src/heatmap_calendar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class HeatMapCalendar extends StatefulWidget {
/// The text color value of week labels.
final Color? weekTextColor;

final Color? headerColor;

/// Make block size flexible if value is true.
///
/// Default value is false.
Expand Down Expand Up @@ -109,6 +111,7 @@ class HeatMapCalendar extends StatefulWidget {
this.colorTipHelper,
this.colorTipCount,
this.colorTipSize,
this.headerColor,
}) : super(key: key);

@override
Expand Down Expand Up @@ -149,6 +152,7 @@ class _HeatMapCalendar extends State<HeatMapCalendar> {
Icons.arrow_back_ios,
size: 14,
),
color: widget.headerColor,
onPressed: () => changeMonth(-1),
),

Expand All @@ -159,6 +163,7 @@ class _HeatMapCalendar extends State<HeatMapCalendar> {
(_currentDate?.year).toString(),
style: TextStyle(
fontSize: widget.monthFontSize ?? 12,
color: widget.headerColor,
),
),

Expand All @@ -168,6 +173,7 @@ class _HeatMapCalendar extends State<HeatMapCalendar> {
Icons.arrow_forward_ios,
size: 14,
),
color: widget.headerColor,
onPressed: () => changeMonth(1),
),
],
Expand Down