firebase-storage

Featured

Use when setting up Storage, uploading/downloading files, managing metadata, handling errors, or applying security rules.

AI & Automation 619 stars 60 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
93
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Firebase Cloud Storage Skill This skill defines how to correctly use Firebase Cloud Storage in Flutter applications. ## When to Use Use this skill when: * Setting up Cloud Storage in a Flutter project. * Uploading or downloading files. * Managing file metadata. * Handling Storage errors and monitoring upload progress. --- ## 1. Setup and Configuration ``` flutter pub add firebase_storage ``` ```dart import 'package:firebase_storage/firebase_storage.dart'; final storage = FirebaseStorage.instance; // Or specify a bucket explicitly: // final storage = FirebaseStorage.instanceFor(bucket: "gs://BUCKET_NAME"); ``` - Firebase Storage requires the **Blaze (pay-as-you-go) plan**. - Run `flutterfire configure` to update your Firebase config with the default Storage bucket name. > **Security note:** By default, a Cloud Storage bucket requires Firebase Authentication for any action. Configuring public access may also make App Engine files publicly accessible — restrict access again when you set up Authentication. --- ## 2. File Operations **Create a reference:** ```dart final storageRef = FirebaseStorage.instance.ref(); final fileRef = storageRef.child("uploads/file.jpg"); ``` **Upload:** ```dart final uploadTask = fileRef.putFile(file); final snapshot = await uploadTask; final downloadUrl = await snapshot.ref.getDownloadURL(); ``` **Download (in-memory):** ```dart final data = await fileRef.getData(); ``` **Download URL:** ```dart final downloadUrl = await fileRe...

Details

Author
evanca
Repository
evanca/flutter-ai-rules
Created
1 years ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category