firebase_cached_image
0.10.1, released 12 days ago by an unverified publisher
Cache Manager and Cached ImageProvider for Firebase Cloud Storage Objects.
What it does
Provides a Flutter ImageProvider and a cache manager to download, cache, pre-cache, and manage files and images from Firebase Cloud Storage. It supports local device storage on mobile/desktop and IndexedDB on the web.
AI-written summary of version 0.10.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display images directly from Firebase Cloud Storage with caching.
- You need to download, cache, and manage non-image files stored in Firebase Storage.
- You want configurable caching policies like expiration times or server check intervals.
Skip it when
- You are loading images from general URLs rather than Firebase Cloud Storage.
- You do not use Firebase in your application.
Strengths
- Seamless integration with Firebase Cloud Storage via gs://, HTTP URLs, or Storage References.
- Includes both an ImageProvider for widgets and a cache manager for generic files and bytes.
- Web support using IndexedDB.
Weaknesses
- Some cache clearing methods and file copying features are not supported on the web.
- Checking for server file updates incurs Class B Google Cloud Storage metadata operations which may cost money after free tiers.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 8
Requires setting up Firebase in your Flutter project. Web support requires setting FirebaseCacheManagerConfig.webSupport = true.
Image(
image: FirebaseImageProvider(
FirebaseUrl("gs://bucket_f233/logo.jpg"),
),
)Alternatives
Packages that do the same job and could replace firebase_cached_image.
- custom_cached_image
Zero-dependency cached network image widget with shimmer, retry, and profile initials
73Compare - cross_file_image
An ImageProvider implementation for cross_file XFile objects.
44Compare - flutter_svg_image
SVG ImageProvider for Flutter with caching support
34Compare
Works with
Packages commonly used together with firebase_cached_image: ones it builds on, ones built on it, and its own family.
- uuidfirebase_cached_image depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- webfirebase_cached_image depends on itLightweight bindings for browser APIs via JS interop
- filefirebase_cached_image depends on itPluggable, mockable file system abstraction for Dart with in-memory support.
- path_providerfirebase_cached_image depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- firebase_corefirebase_cached_image depends on itFlutter plugin that initializes Firebase and allows multiple Firebase app connections.
- sqflitefirebase_cached_image depends on itSQLite plugin for Flutter supporting iOS, Android and MacOS.
- firebase_storagefirebase_cached_image depends on itFlutter plugin to read and write files in Firebase Cloud Storage.