flutter_cache_manager_firebase
2.1.4, released 2 months ago by baseflow.com
CacheManager implementation for Firebase Storage using gs:// keys.
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.
77Compare - shared_preferences
Flutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
97Compare - tostore
Local data engine providing key-value, SQL/NoSQL tables, vector embeddings, and hybrid text search.
88Compare - mmkv
An efficient, small mobile key-value storage framework.
87Compare
Works with
Packages commonly used together with flutter_cache_manager_firebase: ones it builds on, ones built on it, and its own family.
- path_providerflutter_cache_manager_firebase depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- flutter_cache_managerflutter_cache_manager_firebase depends on itGeneric cache manager for saving web files and cache info on device storage.
- retryflutter_cache_manager_firebase depends on itProvides automatic retry with exponential back‑off for async functions.
- firebase_storageflutter_cache_manager_firebase depends on itFlutter plugin to read and write files in Firebase Cloud Storage.
- cached_network_imageSame familyLoad and cache network images in Flutter with placeholder and error widget support.