-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[syncfusion_flutter_calendar] appointments are shown only after screen touch (iOS) #1869
Comments
video added |
Hi @rmpt, We have analyzed your query and if you're trying to load an appointment when the view changes, we suggest you use the handleLoadMore, which allows you to add the appointments to the data source and notify the listener to update the appointment in the current view. We have shared a UG documentation, KB, and live sample below for your reference. UG: https://help.syncfusion.com/flutter/calendar/load-more#load-appointments Live sample: https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/calendar/calendar_loadmore.dart If you are still facing any issue, please provide the reproduced sample this will be more helpful to us to provide a solution sooner. Regards, Preethika Selvam. |
Ok I managed to change the logic so the appointments are loaded on the agenda.mp4I do the API call from my data source within handleLoadMore call. Data is corretcly loaded, added to appointments and notified, but the events are only shown after a minimum swipe. Simplified code:
Does it has to do with the API call? In your examples you data is local, so all operations within handleLoadMore are sync. In my case, I'm calling the API to fetch some data and only after I have the data, I add and notify the data source. Does it make any difference? |
Hi @PreethikaSelvam , I found the issue.
I had 2 sequential notifyListeners, so I guess the first one would trigger the rendering and the second one would be "ignored" until the screen is touched. But now I have another question: |
We see the same issue: the calendar view is only updated after a user input (like a tap anywhere). This feels very much like a race condition because it does not happen all the times. @PreethikaSelvam You suggestion to use EIDT: It turns out that this was probably a race condition caused by calling |
Bug description
On any view type (month, day, week, etc), appoitments are added to the data source correctly, the notify functions is called but appointments are not shown. Once I touch the screen and do a minimal movement/swipe, all appointments show up.
It means they are there, but now being rendered.
Steps to reproduce
Code sample
Widget code (simplified)
Screenshots or Video
appointments.mp4
Stack Traces
n/a
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: