Skip to content
pubscout

cached_network_image

4.0.7, released 9 days ago by baseflow.com

Load and cache network images in Flutter with placeholder and error widget support.

Uses material_ui
$ flutter pub add cached_network_image
Source repository

What it does

A Flutter library that shows images from the internet and keeps them cached in the local directory. It supports placeholders, error widgets, progress indicators, and custom image builders.

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

Use it when

  • You need to display network images with local caching
  • You want custom loading placeholders or error widgets while images download

Skip it when

  • You are targeting the web platform where caching is currently not supported by this package

Strengths

  • Easy integration for caching network images
  • Supports placeholders, error widgets, and progress indicators
  • Integrates with flutter_cache_manager

Weaknesses

  • Minimal support for web without caching capabilities

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
5

not documented

CachedNetworkImage(
        imageUrl: "http://via.placeholder.com/350x150",
        placeholder: (context, url) => CircularProgressIndicator(),
        errorWidget: (context, url, error) => Icon(Icons.error),
     )

Alternatives

Packages that do the same job and could replace cached_network_image.

  • image

    Provides a comprehensive set of image processing and manipulation utilities rather than just caching network images.

Works with

Packages commonly used together with cached_network_image: ones it builds on, ones built on it, and its own family.