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
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.
Works with
Packages commonly used together with cached_network_image: ones it builds on, ones built on it, and its own family.
- flutter_cache_managercached_network_image depends on itGeneric cache manager for saving web files and cache info on device storage.
- octo_imagecached_network_image depends on itA multifunctional Flutter image widget supporting placeholders, error widgets, and fading.
- material_uicached_network_image depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- flutter_cache_manager_firebaseSame familyCacheManager implementation for Firebase Storage using gs:// keys.
- fwfh_cached_network_imageBuilt on cached_network_imageWidgetFactory extension to render HTML IMG tags using cached_network_image.
- stream_chat_flutterBuilt on cached_network_imageFull-featured Flutter UI SDK for Stream Chat, providing ready‑made chat widgets and theming.
- stacBuilt on cached_network_imageA Server-Driven UI framework for Flutter that renders JSON payloads into native widgets.
- serverpod_auth_shared_flutterBuilt on cached_network_imageShared Flutter widgets for Serverpod authentication, including passwordless OTP and social logins.