Skip to content
pubscout

firebase_storage_web

3.12.0, released 4 days ago by firebase.google.com

Web implementation of Firebase Storage for Flutter.

$ flutter pub add firebase_storage_web
Source repository

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.

Works with

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