syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.44k stars 672 forks source link

SFCalendar doesn't update the view when the dataSource is changed #1839

Open davidpanic opened 2 weeks ago

davidpanic commented 2 weeks ago

Bug description

When the dataSource of the SFCalendar widget is changed, the view is not correctly updated until some kind of UI update is triggered e.g. by tapping on a calendar cell, swiping slightly left or right or hovering on a cell with the mouse.

Steps to reproduce

  1. Run the below example code
  2. Try swiping on the calendar
  3. Wait 2 seconds (artificial delay to simulate slow network)
  4. Observe the bug, the loaded appointments don't show up until something is updated in the UI.

Code sample

calendar_update_bug.zip

Screenshots or Video

https://github.com/syncfusion/flutter-widgets/assets/13370323/b0e14c60-b0dc-4f11-996a-2c1f5d680daa

Stack Traces

n/a

On which target platforms have you observed this bug?

Android, iOS, Web, Web (Android browser), Linux

Flutter Doctor output

Doctor output ```console Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.6, on Artix Linux 6.8.7-lqx2-1-lqx, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc1) [✓] Chrome - develop for the web [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2023.1) [✓] Connected device (2 available) [✓] Network resources • No issues found! ```
PreethikaSelvam commented 1 week ago

Hi @davidpanic,

We have checked and found that when the duration is 0, we are unable to replicate the issue. Unfortunately, when we set the duration to a value greater than 0, we can reproduce the issue you reported. To thoroughly investigate the root cause at the source level, we will need some time. We will provide you with more information within two business days on May 08, 2024. Thank you for your understanding and patience in the meantime.

Regards,

Preethika Selvam.

davidpanic commented 3 days ago

Not exactly two business days 😅

Anyways, I don't mind, but is there any update on this, I would like to get this resolved ASAP as we have some customers complaining.