Skip to content

Commit

Permalink
Merge pull request #423 from SimformSolutionsPvtLtd/fix/issue_410_upd…
Browse files Browse the repository at this point in the history
…ate_week_view_hours

fix: Fixes issue #410: 🐛 Fix `startHour` and `endHour` rebuild issue in WeekView
  • Loading branch information
PRBaraiya authored Jan 2, 2025
2 parents 912bd73 + 525415e commit af26492
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)
- Fixes issue of header icon `color` property in `IconDataConfig`.

# [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 af26492

Please sign in to comment.