diff --git a/CHANGELOG.md b/CHANGELOG.md index ea84253..5988123 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [0.4.12] - 2024-08-30 +* Issue 86: Updtae of the eventlist now works every time + ## [0.4.11] - 2024-08-29 * Automatic scrolling to nearest date from today on loading the event list view * New callback method parameter onTodayButtonPressed diff --git a/lib/flutter_neat_and_clean_calendar.dart b/lib/flutter_neat_and_clean_calendar.dart index bfac6b8..ca5d39b 100644 --- a/lib/flutter_neat_and_clean_calendar.dart +++ b/lib/flutter_neat_and_clean_calendar.dart @@ -252,14 +252,7 @@ class _CalendarState extends State { void didUpdateWidget(covariant Calendar oldWidget) { super.didUpdateWidget(oldWidget); // Überprüfen, ob die neuen Events sich von den alten unterscheiden - if (oldWidget.eventsList != widget.eventsList) { - // When setting the initial date, the eventsmap must be updated. The eventsmap is used to - // store the events for each day. The eventsmap is used to display the events in the calendar. - // It is basically the internal store of the events. Because the events are passed as a list - // to the calendar, the eventsmap must be created from the list. This is done in the - // _updateEventsMap method. - _updateEventsMap(); - } + _updateEventsMap(); } /// Scrolls the list view to the top if the event list view is shown. diff --git a/pubspec.yaml b/pubspec.yaml index f637a10..5abaf7c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: >- Simple and clean flutter calendar with ability to slide up/down to show weekly/monthly calendar. Fork of https://pub.dev/packages/flutter_clean_calendar -version: 0.4.11 +version: 0.4.12 homepage: https://github.com/rwbr/flutter_neat_and_clean_calendar environment: