flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

Cannot control the cache size!

Open ZahraVe opened this issue 2 years ago • 0 comments

I am using cached_network_image: ^3.2.0 to cache some images that I have stored in firebase storage. Each image is around 2MB, and I have 24MB images in total. I want to cache them all for less than 10MB. Is it possible to achieve this using cached_network_image package? By changing the parameters like maxHeightDiskCache or memCacheHeight the total cache size is still around 24MB. Here is how I use it :

 CachedNetworkImage(
                // maxHeightDiskCache: 200,
                // maxWidthDiskCache: 200,
                memCacheHeight: 200,
                memCacheWidth: 200,
                height: 200,
                width: 200,
                imageUrl: data,
              ),

BTW, I have tried

 Image.network(
                data,
                cacheHeight: 300,
              ),

and the total cache size will be a few KB. So, I assume that the issue is not coming from the other parts of the code.

ZahraVe avatar Jun 15 '22 15:06 ZahraVe