flutterfire-configure

Featured

Use when adding Firebase to a Flutter project, running flutterfire configure, initializing Firebase in main.dart, or configuring multiple flavors.

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

# FlutterFire Configure Skill This skill defines how to correctly set up and configure Firebase for Flutter applications. ## When to Use Use this skill when: * Adding Firebase to a Flutter project for the first time. * Running `flutterfire configure` after adding a new Firebase service or platform. * Initializing Firebase in `main.dart`. * Setting up separate Firebase projects for multiple app flavors. --- ## 1. Prerequisites Install the required tools: ```bash npm install -g firebase-tools firebase login dart pub global activate flutterfire_cli ``` **Minimum platform requirements:** - Android: API level 19 (KitKat) or higher - Apple: iOS 11 or higher --- ## 2. Setup and Configuration ```bash # From your Flutter project directory: flutterfire configure # Add the core Firebase package: flutter pub add firebase_core ``` - Re-run `flutterfire configure` any time you **add support for a new platform** or **start using a new Firebase service**. - For Android-specific services (Crashlytics, Performance Monitoring), the FlutterFire CLI automatically adds the required Gradle plugins. - Rebuild with `flutter run` after adding new Firebase plugins. --- ## 3. Firebase Initialization ```dart import 'package:firebase_core/firebase_core.dart'; import 'firebase_options.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, ); runApp(const MyApp()); } ``` - Call `Widge...

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