Skip to content

Commit 74e90ca

Browse files
author
Shubham Jitiya
committed
fix: 🔨 Fix header icon color issue
1 parent 836953e commit 74e90ca

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Fixes right icon always shows default icon in `CalendarPageHeader` when providing custom icon. [#432](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/432)
66
- Adds `hideDaysNotInMonth` argument in `cellBuilder` in readme. [#433](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/433)
77
- Fixes `titleColor` of date for `hideDaysNotInMonth: false`.
8+
- Fixes issue of header icon `color` property in `IconDataConfig`.
89

910
# [1.3.0 - 12 Nov 2024](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/tree/1.3.0)
1011

lib/src/components/headers/calendar_page_header.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ class CalendarPageHeader extends StatelessWidget {
8383
this.secondaryDate,
8484
@Deprecated("Use HeaderStyle.decoration to provide background")
8585
this.backgroundColor = Constants.headerBackground,
86-
@Deprecated("Use HeaderStyle to provide icon color")
87-
this.iconColor = Constants.black,
86+
@Deprecated("Use HeaderStyle to provide icon color") this.iconColor,
8887
this.headerStyle = const HeaderStyle(),
8988
}) : assert(
9089
titleBuilder != null || dateStringBuilder != null,

lib/src/components/headers/day_page_header.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ class DayPageHeader extends CalendarPageHeader {
2020
VoidCallback? onPreviousDay,
2121
StringProvider? dateStringBuilder,
2222
required DateTime date,
23-
@Deprecated("Use HeaderStyle to provide icon color")
24-
Color iconColor = Constants.black,
23+
@Deprecated("Use HeaderStyle to provide icon color") Color? iconColor,
2524
@Deprecated("Use HeaderStyle to provide background")
2625
Color backgroundColor = Constants.headerBackground,
2726
HeaderStyle headerStyle = const HeaderStyle(),

lib/src/components/headers/month_page_header.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class MonthPageHeader extends CalendarPageHeader {
1717
VoidCallback? onNextMonth,
1818
AsyncCallback? onTitleTapped,
1919
VoidCallback? onPreviousMonth,
20-
@Deprecated("Use HeaderStyle to provide icon color")
21-
Color iconColor = Constants.black,
20+
@Deprecated("Use HeaderStyle to provide icon color") Color? iconColor,
2221
@Deprecated("Use HeaderStyle to provide background color")
2322
Color backgroundColor = Constants.headerBackground,
2423
StringProvider? dateStringBuilder,

lib/src/components/headers/week_page_header.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ class WeekPageHeader extends CalendarPageHeader {
1919
VoidCallback? onPreviousDay,
2020
required DateTime startDate,
2121
required DateTime endDate,
22-
@Deprecated("Use HeaderStyle to provide icon color")
23-
Color iconColor = Constants.black,
22+
@Deprecated("Use HeaderStyle to provide icon color") Color? iconColor,
2423
@Deprecated("Use HeaderStyle to provide background color")
2524
Color backgroundColor = Constants.headerBackground,
2625
StringProvider? headerStringBuilder,

0 commit comments

Comments
 (0)