Baseflow / Baseflow/flutter_cached_network_image

Image show pink in color in image view when i open the app from background after sometime : iOS only

Open
#1,025 1 comment 0 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

iOS issue: app shows a pink imageview briefly when reopened from the background.

Expected behavior: Should show image properly, and if found error then show the error widget.

Reproduction steps : Put iOS app is in background for a while and after sometime you will get this issue.

Configuration :

return CachedNetworkImage(
height: height,
width: width,
fit: fit,
imageUrl: normalizedPath,
maxHeightDiskCache: 2000,
maxWidthDiskCache: 2000,
color: color,
placeholder: (context, url) => SizedBox(
height: 30,
width: 30,
child: LinearProgressIndicator(
color: Colors.grey.shade200,
backgroundColor: Colors.grey.shade100,
),
),
errorWidget: (context, url, error) {
return Image.asset(
placeHolder,
height: height,
width: width,
fit: fit ?? BoxFit.cover,
errorBuilder: (context, error, stackTrace) {
return const Icon(Icons.broken_image,
size: 40, color: Colors.grey);
},
);
},
fadeOutDuration: const Duration(seconds: 0),
fadeInDuration: const Duration(seconds: 0),
);

Usage

return CustomImageView(
imagePath: vendorModel.vendorImage,
height: 62.adaptSize,
width: 62.adaptSize,
radius: BorderRadius.circular(100.h),
alignment: Alignment.center,
);

Image

**Version:** cached_network_image: 3.4.1

**Platform:**
- [x] :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.