From 8b17ef9219c905c19505cfeafc5d5cc46c93a532 Mon Sep 17 00:00:00 2001 From: UjjwalSharma2210 Date: Wed, 26 Apr 2023 11:57:37 +0530 Subject: [PATCH] colour of header --- lib/src/heatmap_calendar.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/heatmap_calendar.dart b/lib/src/heatmap_calendar.dart index b325e4e..fdfe289 100644 --- a/lib/src/heatmap_calendar.dart +++ b/lib/src/heatmap_calendar.dart @@ -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. @@ -109,6 +111,7 @@ class HeatMapCalendar extends StatefulWidget { this.colorTipHelper, this.colorTipCount, this.colorTipSize, + this.headerColor, }) : super(key: key); @override @@ -149,6 +152,7 @@ class _HeatMapCalendar extends State { Icons.arrow_back_ios, size: 14, ), + color: widget.headerColor, onPressed: () => changeMonth(-1), ), @@ -159,6 +163,7 @@ class _HeatMapCalendar extends State { (_currentDate?.year).toString(), style: TextStyle( fontSize: widget.monthFontSize ?? 12, + color: widget.headerColor, ), ), @@ -168,6 +173,7 @@ class _HeatMapCalendar extends State { Icons.arrow_forward_ios, size: 14, ), + color: widget.headerColor, onPressed: () => changeMonth(1), ), ],