Skip to content
pubscout

flutter_cache_manager_firebase

2.1.4, released 2 months ago by baseflow.com

CacheManager implementation for Firebase Storage using gs:// keys.

$ flutter pub add flutter_cache_manager_firebase
Source repository

What it does

Provides a CacheManager implementation and FirebaseHttpFileService specifically for Firebase Storage. It uses gs:// paths as keys and translates them to HTTPS URLs to fetch and cache files.

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

Use it when

  • You need to cache files fetched from Firebase Storage in your Flutter application.
  • You want to use gs:// paths as keys for your cached files.

Skip it when

  • You are using standard HTTP URLs rather than Firebase Storage gs:// references.
  • You require a general-purpose local database or key-value store not tied to Firebase.

Strengths

  • Seamless integration with flutter_cache_manager and firebase_storage.
  • Supports custom Firebase storage buckets.
  • Supports retry options and Wasm compatibility.

Weaknesses

  • Limited to Firebase Storage use cases.
  • Depends on specific external packages like firebase_storage and flutter_cache_manager.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
5

Requires setting up Firebase Storage and importing the package alongside firebase_storage and flutter_cache_manager.

var file = await FirebaseCacheManager().getSingleFile(url);

Alternatives

Packages that do the same job and could replace flutter_cache_manager_firebase.

  • simple_secure_storage

    Secure key‑value storage for Flutter with platform‑specific backends.

  • shared_preferences

    Flutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.

  • tostore

    Local data engine providing key-value, SQL/NoSQL tables, vector embeddings, and hybrid text search.

  • mmkv

    An efficient, small mobile key-value storage framework.

Works with

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