Skip to content

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

Description

@rajrajputgs

🐛 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:

  • 📱 iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions