From 6ec0bf2d0806c89f02df02d2197ce0c6095ad4d4 Mon Sep 17 00:00:00 2001 From: Shubham Jitiya Date: Wed, 4 Dec 2024 16:40:59 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20Fixes=20issue=20#410:=20=F0=9F=90=9B=20F?= =?UTF-8?q?ix=20`startHour`=20and=20`endHour`=20rebuild=20issue=20in=20`We?= =?UTF-8?q?ekView`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + lib/src/week_view/week_view.dart | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d479993b..479dc4dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Fixes right icon always shows default icon in `CalendarPageHeader` when providing custom icon. [#432](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/432) - Adds `hideDaysNotInMonth` argument in `cellBuilder` in readme. [#433](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/433) - Fixes `titleColor` of date for `hideDaysNotInMonth: false`. +- Fixes `startHour` and `endHour` not updating when rebuilding in week view. [#410](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/410) # [1.3.0 - 12 Nov 2024](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/tree/1.3.0) diff --git a/lib/src/week_view/week_view.dart b/lib/src/week_view/week_view.dart index 2b074370..0a2182f9 100644 --- a/lib/src/week_view/week_view.dart +++ b/lib/src/week_view/week_view.dart @@ -468,6 +468,8 @@ class WeekViewState extends State> { } _eventArranger = widget.eventArranger ?? SideEventArranger(); + _startHour = widget.startHour; + _endHour = widget.endHour; // Update heights. _calculateHeights();