Baseflow / Baseflow/flutter_cached_network_image

iOS crashed when loading thousands Images with CachedNetworkImageProvider in Listview

Open
#970 13 comments 6 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.