Baseflow / Baseflow/flutter_cached_network_image
iOS crashed when loading thousands Images with CachedNetworkImageProvider in Listview
- Dominant language
- Dart
- Stars
- 2.6k
- Forks
- 731
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
## 🐛 Bug Report
Rapidly scrolling through a ListView in iOS , when i stop scrolling, the memory usage keep rising until the app crashes.
### Expected behavior
The image cache usage should be kept within the restricted range.
### Reproduction steps
already set the cache limit in main.dart
PaintingBinding.instance.imageCache.maximumSize = 10;
PaintingBinding.instance.imageCache.maximumSizeBytes = 1024 *1024 * 100;//MB
i've used ScrollAwareImageProvider ,set maxWidth&maxHeight for CachedNetworkImageProvider
### Configuration
**Version: Flutter 3.22.2 Dart 3.4.3
**Platform:**
- [ ] :iphone: iOS
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.