Baseflow / Baseflow/flutter_cached_network_image
Using memCacheWidth/height along with imageBuilder has no effect.
- Dominant language
- Dart
- Stars
- 2.6k
- Forks
- 731
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
## 🐛 Bug Report
When adding a `memCacheWidth` or `memCacheHeight`, the cached version of the image doesn't get passed to the `imageBuilder`, so the image stays its original size.
When using `debugInvertOversizedImages = true;` the image is clearly still too large for its container. Removing the `imageBuilder` fixes this error.
### Expected behavior
Image rendered through the imageBuilder should be lower resolution or smaller size.
### Reproduction steps
Run the following with an image:
```
CachedNetworkImage(
imageUrl: imageUrl.toString(),
memCacheWidth: 50,
imageBuilder: (context, imageProvider) {
return Container(
width: double.infinity,
height: 150,
decoration: BoxDecoration(
image: DecorationImage(
image: imageProvider,
fit: BoxFit.cover,
),
),
);
},
),
```
### Configuration
As above.
**Version:** 3.2.0
**Platform:**
- [ ] :iphone: iOS
- [X] :robot: Android
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.