Skip to content

Commit

Permalink
fix: Fixes issue #410: 🐛 Fix 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 Jan 2, 2025
1 parent 836953e commit 6ec0bf2
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 @@ -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)

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 6ec0bf2

Please sign in to comment.