flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

How to check if a cacheKey exists?

Open RBT22 opened this issue 4 years ago • 2 comments

How to check if a cacheKey exists?

Is it possible to check if an image is in the cache if I only have the cacheKey? It should work on every platform (web, mobile).

Thank you for your help!

RBT22 avatar Jan 06 '22 10:01 RBT22

I have the same question/problem. I download SD by default, and HD when the full image is opened. I then want the HD loaded for there on for the preview, because it is already cached.

Can't find a way to do this through the plugin. The key can be stored manually and then checked later on.

Colton127 avatar Jan 11 '22 02:01 Colton127

Exactly, this is my main use-case too. I pass only the cacheKey to a new page, and I want to use Hero animation. If there is no solution I will use what you just mentioned, but It seemed strange not to have this feature.

RBT22 avatar Jan 11 '22 08:01 RBT22