Skip to content
pubscout

custom_cached_image

2.0.0, released 8 days ago by jeuxtesting.com

Zero-dependency cached network image widget with shimmer, retry, and profile initials

WASM-ready
$ flutter pub add custom_cached_image
Source repository

What it does

Provides a Flutter widget that loads images from the network, caches them on disk, and displays a shimmer or spinner while loading. It handles errors, retries, and can show profile initials when the image is missing.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a lightweight image loader without external dependencies
  • You want built‑in caching and offline support
  • You need a shimmer placeholder or retry button
  • You want to display profile initials when an image fails

Skip it when

  • You already use cached_network_image or shimmer
  • You need advanced image manipulation or decoding
  • You require a custom HTTP client beyond the built‑in one

Strengths

  • Zero third‑party dependencies
  • Built‑in disk cache with ETag/Last‑Modified support
  • Offline friendly with stale cache
  • Request de‑duplication

Weaknesses

  • No support for advanced image formats like SVG or vector graphics
  • No direct integration with image picking or editing
  • Limited to network images only (no local assets)
  • No built‑in support for image transformations (crop, resize)

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

Add dependency in pubspec and import package

CustomCachedImage(
  imageUrl: 'https://example.com/sample.jpg',
  width: 150,
  height: 150,
  borderRadius: 10,
  fit: BoxFit.cover,
)

Alternatives

Packages that do the same job and could replace custom_cached_image.