Skip to content
pubscout

firebase_storage

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

Flutter plugin to read and write files in Firebase Cloud Storage.

Flutter Favorite
$ flutter pub add firebase_storage
Source repository

What it does

Provides a Dart API to upload, download, delete, and list files stored in Firebase Cloud Storage. It integrates with Firebase authentication and handles platform‑specific implementations for Android, iOS, Web, Windows, and macOS.

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

Use it when

  • You need cloud‑hosted file storage that scales automatically
  • You already use other Firebase services like Auth or Firestore
  • You want cross‑platform support with a single API

Skip it when

  • You need on‑device only storage without network access
  • You require a lightweight solution without native SDKs
  • Your project cannot include Google services configuration

Strengths

  • First‑party Firebase integration
  • Supports resumable uploads and download streams
  • Works on mobile, web, and desktop platforms

Weaknesses

  • Requires native Firebase setup (google‑services files, App ID)
  • Adds native dependencies, increasing app size
  • Limited to Firebase ecosystem

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
5

Add firebase_core and configure Google services files (google-services.json, GoogleService-Info.plist). Initialize Firebase in main() before using firebase_storage. No build_runner needed.

import 'package:firebase_storage/firebase_storage.dart';

Future<void> uploadFile() async {
  final ref = FirebaseStorage.instance.ref('uploads/example.txt');
  await ref.putString('Hello Firebase Storage');
  final url = await ref.getDownloadURL();
  print('Download URL: $url');
}

Alternatives

Packages that do the same job and could replace firebase_storage.

Works with

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