Skip to content
pubscout

firebase_cached_image

0.10.1, released 12 days ago by an unverified publisher

Cache Manager and Cached ImageProvider for Firebase Cloud Storage Objects.

Unverified publisher
$ flutter pub add firebase_cached_image
Source repository

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.

Works with

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