Baseflow / Baseflow/flutter_cached_network_image

Cannot control the cache size!

Open
#754 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.6k
Forks
731
Avg merge
3d 9h
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.