
Hi! I am trying to cache an image I am pulling from Appwrite Storage using cached_network_image
package in Flutter. The CachedNetworkImage lives inside a FutureBuilder and it's firing everytime. I've also attached the code. I've also tried to use the AsyncMemorizer in the dart:async
package but no progress. Any fixes?

This might be helpful: https://github.com/appwrite/appwrite/discussions/3474#discussioncomment-3109355

Thanks. WIll have a look an revert back in a while!

@Steven I am afraid it is not a correct solution.

I used getFileView and it is still making requests.

The suggestion in the discussion did not say to call that function

Then?

I can see the discussion says you need to call getFileView instead of getFileDownload

To clarify, I need to cache the image and download the Future only once. In this case, the FutureBuilder is firing everytime.

It says to use the url and pass it into network image widget

Solved. The solution was to just remove FutureBuilder and follow the rest of discussion you provided. Thanks for the help @Steven !

[SOLVED] Caching an image in FutureBuilder
Recommended threads
- NullReferenceException whenever I call s...
I hope you’re doing well. I’m encountering a NullReferenceException: Object reference not set to an instance of an object. whenever I call storage.CreateFile(.....
- Image Loading issue in Snapgram project
Hello community, I have a issue with the Image Loading I made a Project from youtube of Snapgram, it worked perfectly 8 months ago, but now the images aren't l...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
