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
I would like to be able to configure load timeout for CachedNetworkImageProvider.
Contextualize the feature
When building offline functionality, I want to display thumbnail images instead of original urls if network connection was bad. I can't just lock this under Connectivity.none, because connectivity might be there, but it's bad or internet is not accessible.
I would like to fail fast and provide a different image in errorBuilder.
Describe the feature
CachedNetworkImageProvider should accept optional configuration, that would allow settings network timeout for the request. It is not enough to just rely on the cache because the image that user wants to display might be a different image.
Alternatively, other features from CachedNetworkImage (like placeholder) could be added to CachedNetworkImageProvider for cases when it's not possible to use Widget – decorations, PhotoView and others.
I've subbitted a PR to add timeout support on the dependent package flutter_cache_manager. I'll open a corresponding PR on this repo after flutter_cache_manager upgraded.
Activity
untillnesss commentedon Oct 21, 2023
Any update ?
haizadvnet commentedon Jan 9, 2024
FutureBuildermight helps temporary in this case.an920107 commentedon Feb 19, 2025
I've subbitted a PR to add timeout support on the dependent package
flutter_cache_manager. I'll open a corresponding PR on this repo afterflutter_cache_managerupgraded.Baseflow/flutter_cache_manager#482