firebase_storage_web
3.12.0, released 4 days ago by firebase.google.com
Web implementation of Firebase Storage for Flutter.
What it does
Provides APIs to upload, download, and manage files in Firebase Storage on web browsers. It handles CORS configuration and task metadata for errors.
AI-written summary of version 3.11.15, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Firebase Storage support in a Flutter web app
- You want to upload or download files from a web browser
Skip it when
- You are targeting only mobile platforms
- You need advanced offline caching
Strengths
- Official Firebase integration
- Handles CORS and metadata automatically
- Supports all Firebase Storage features
Weaknesses
- Requires CORS setup in GCS
- Only works on web
- No offline support
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 8
Add dependency, import package, initialize Firebase in main, ensure CORS headers on bucket
import 'package:firebase_storage/firebase_storage.dart';
final ref = FirebaseStorage.instance.ref('path/to/file.txt');
final data = await ref.getData();Alternatives
Packages that do the same job and could replace firebase_storage_web.
- firebase_dart
A pure Dart implementation of Firebase Authentication, Realtime Database, and Cloud Storage.
74Compare - firebase_rules
A type-safe Firebase rules generator for Firestore, Storage, and Realtime Database
60Compare - flamingo
Firebase Firestore model framework library with code generation for Dart.
46Compare - flutterfire_cli
CLI to configure Firebase services in Flutter projects
84Compare
Works with
Packages commonly used together with firebase_storage_web: ones it builds on, ones built on it, and its own family.
- webfirebase_storage_web depends on itLightweight bindings for browser APIs via JS interop
- asyncfirebase_storage_web depends on itUtility classes and helpers that extend Dart's async library.
- firebase_corefirebase_storage_web depends on itFlutter plugin that initializes Firebase and allows multiple Firebase app connections.
- firebase_core_webfirebase_storage_web depends on itWeb implementation of firebase_core for Flutter apps.
- firebase_messagingSame familyFlutter plugin for Firebase Cloud Messaging to deliver messages on Android, iOS, web, and macOS.
- firebase_messaging_webSame familyWeb implementation of Firebase Cloud Messaging for push notifications.
- firebase_analyticsSame familyFlutter plugin for Google Analytics for Firebase.
- firebase_crashlyticsSame familyFlutter plugin that sends uncaught errors and crash reports to Firebase Crashlytics.