flutter_cached_network_image
flutter_cached_network_image copied to clipboard
The plugin not works as Expected !
When i use it with internet there's no problem, but if i turned the internet off / or re-launched my app the images will not load ! sounds like there's "no cache" (always), this add more costs because we use firebase storage and every fetch will add more costs .. we think about the ability to add the images to ZIP file and download it once on the user device, then use these image, because they're static ..
what do you think ? are you going to solve it ?!
thank you.
Device: Realme 5 Flutter: 2.8.1 Plugin: 3.2.0
@bounty1342
You please read the docs: A flutter library to show images from the internet and keep them in the cache directory.
you should "keep them in the cache directory" ...
so "Please" show me how to "keep them in the cache directory" ?!
my example:
CachedNetworkImage cachedNetworkImage({imageUrl, width, height}){
return CachedNetworkImage(
imageUrl: imageUrl,
width: width,
height: height,
);
}
@bounty1342 Can you explain ?!
why don't you "simply" save the image "at it's full size, normally" in the cache folder and return it as resized by width & height ?!
why should i take the control to cache the image and fetch it again, if your plugin exists ? , it's useless here ..
and if the cache control on the image are still valid.
What's that mean, how can this works ? i am not sure what are you talking about, and docs say nothing !
please take it as important conversation , thanks.
@renefloor Are you ready to solve the issue ?
the image are cached in memory not the disk !
how to save it on the disk ?
@bounty1342
was say that the image are being cached if i don't use width& height ! and if the cache control on the image are still valid.
how and why ?!
thanks.
This doesn't sound correct. Is the url or the key that you set the same all the time? I believe firebase changes the url, that might be the issue. You can use the FirebaseCacheManager if that's the case. https://pub.dev/packages/flutter_cache_manager_firebase