-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
[Bug report] Conflict between LoadState.complete and LoadState.loading #596
Comments
I couldn't reprduce it at my side. it's better to provide a simple runnable demo. and run on flutter stable branch |
This comment was marked as outdated.
This comment was marked as outdated.
Reposting this with my other account not to cause confusion. I will try, but must inform that Im currently swamped and that might take me some time. Also, we code on flutter master, and if Im not wrong, ExtendedImage doesnt support it yet |
any more info about your issue? |
Hello, we had to use this other plugin https://github.com/CHRISTOPANANJICKAL/fast_cached_network_image It is rudimental, but lets workaround the issue coz state completed is bound to having fully downloaded the file and saved its url to internal hive. So conflict between We will try back again |
i don't think so. The loadState is the ui state, when the page is rebuild, ui should be reload. Even if images are cached in the memory or locally, redrawing them by the flutter engine still takes time, especially for large images. Without a loading interface, this could result in a blank screen。 |
Yea indeed it is strange bug. But here is use case:
As a workaround, that other plugin allows us to run Bug apart, it wouldnt hurt to expose a sync method |
Version
8.0.2
Platforms
Android, iOS
Device Model
iPhone 13 pro iOS16.1
flutter info
How to reproduce?
Sometimes LoadState.completed is invoked when image is still loading and vice-versa.
To reproduce issue, just print loadStateChanged.
Note that issue is consistent but occurs randomly, so it might be required to load the image multiple times to see it.
Any help on this would be much appreciated!
Logs
Example code (optional)
No response
Contact
No response
The text was updated successfully, but these errors were encountered: