From 45c34adde285124b89215f75c60be30bb3e47e4e Mon Sep 17 00:00:00 2001 From: Shubham Jitiya Date: Wed, 4 Dec 2024 16:40:59 +0530 Subject: [PATCH] fix: Fixes issue #410: Fixed `startHour` and `endHour` rebuild issue in WeekView --- 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 f5069587..2ba83046 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Default is `showWeekends = true` shows all weekdays. [#385](https://github.com/SimformSolutionsPvtLtd/flutter_calendar_view/issues/385) - Fixes issue: Event is shown when days not in current month is hidden `hideDaysNotInMonth = true`. Events are now hidden for days not in the current month if `hideDaysNotInMonth = true`. +- 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 f5fd9cbc..6b0001d0 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();