You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to display device calendars inside an app.
I have a list of events, one of which has a weekly recurring rule.
Inside the returned list of event, I have my other events as expected.
For the recurring event, each individual occurrence of the event is returned and the recurrence rule for each recurring events returned is missing the dayOfWeek parameter (list is always empty).
I have tried on 5.0 pre-release and it's the same I think
To Reproduce
Create a flutter project
Add a weekly recurring event to your calendar
Get the list of events
Expected behavior
I expect the recurring event to be returned only once with a valid recurring rule
Device(s) tested
Device: iPhone 15 Pro Max Simulator
OS: iOS 17.4
Plugin version 4.3.2 or 5.0 pre-release
Flutter doctor
Android is not configured properly cause new machine and don't plan to run on Android for now
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.0, on macOS 14.4 23E214 darwin-arm64, locale fr-FR)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.4)
[✓] Connected device (4 available)
[✓] Network resources
The text was updated successfully, but these errors were encountered:
First of all, recurring events are tricky. It gets even trickier if you change or delete some of them. Is a recurring event one event or is it a series of individual events? @brandonguigo states "Expected behavior: I expect the recurring event to be returned only once with a valid recurring rule", and I disagree. What if you have 5 events in your series, and then you delete one in the middle? I want them all to be returned. But it seems as when you save a recurring event with a number of parameters, and then retrieve it (or actually them) again, the parameters have been changed and there is an unexpected behaviour if you edit an event in the middle of the series an. So if I save an event with the recurring parameters: flutter: Rec endDate: 2024-08-17T10:00:00.000+0200
flutter: Rec dayOfMonth: null
flutter: Rec daysOfWeek: null
flutter: Rec monthOfYear: null
flutter: Rec weekOfMonth: null
flutter: Rec interval: 1
flutter: Rec recurrenceFrequency: RecurrenceFrequency.Daily
flutter: Rec totalOccurrences: 5
...and then immediately retrieve the first instance of the event series, I get: flutter: Rec endDate: 2024-08-17T10:00:00.000
flutter: Rec dayOfMonth: null
flutter: Rec daysOfWeek: []
flutter: Rec monthOfYear: null
flutter: Rec weekOfMonth: null
flutter: Rec interval: 1
flutter: Rec recurrenceFrequency: RecurrenceFrequency.Daily
flutter: Rec totalOccurrences: null
...and this is fishy and if you change an event in the middle, the events before the event that you edit disappear. I will look into this further and probably make a bug report.
Describe the bug
I'm trying to display device calendars inside an app.
I have a list of events, one of which has a weekly recurring rule.
Inside the returned list of event, I have my other events as expected.
For the recurring event, each individual occurrence of the event is returned and the recurrence rule for each recurring events returned is missing the dayOfWeek parameter (list is always empty).
I have tried on 5.0 pre-release and it's the same I think
To Reproduce
Expected behavior
I expect the recurring event to be returned only once with a valid recurring rule
Device(s) tested
Flutter doctor
Android is not configured properly cause new machine and don't plan to run on Android for now
The text was updated successfully, but these errors were encountered: