Skip to content

Commit

Permalink
fix: Fixes issue #410: Fixed startHour and endHour rebuild issue …
Browse files Browse the repository at this point in the history
…in WeekView
  • Loading branch information
shubham-jitiya-simform committed Dec 16, 2024
1 parent e98b9e7 commit 45c34ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 2 additions & 0 deletions lib/src/week_view/week_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ class WeekViewState<T extends Object?> extends State<WeekView<T>> {
}

_eventArranger = widget.eventArranger ?? SideEventArranger<T>();
_startHour = widget.startHour;
_endHour = widget.endHour;

// Update heights.
_calculateHeights();
Expand Down

0 comments on commit 45c34ad

Please sign in to comment.