The Flutter Kit logoThe Flutter Kit
Boilerplate

Flutter Firebase Boilerplate: the complete Firebase wiring done right

Auth, Firestore, Storage, Functions, and FCM — every Firebase service connected, scoped, and tested in one Dart codebase. Stop wiring the same five services by hand on every new app.

Last updated: 2026-06-04 6 min read By Ahmed Gagan, Flutter Engineer
Quick Answer

The Flutter Kit is a flutter firebase boilerplate priced at $69 one-time (was $149) that ships every Firebase service pre-wired: Auth, Firestore, Cloud Storage, Cloud Functions, and FCM push. You get unlimited projects, lifetime updates, and full Dart source ownership — no subscription. The Firebase layer is built on BLoC with get_it dependency injection and a repository pattern, so you swap backends without rewriting your UI.

Price
$69 one-time (was $149), unlimited projects
Firebase services
Auth, Firestore, Storage, Cloud Functions, FCM
Architecture
BLoC + Cubit, get_it DI, repository pattern
Platforms
iOS, Android, Web from one Dart codebase

Why "Firebase done right" is harder than adding the packages

Anyone can run flutter pub add firebase_core. The real work is what comes after: initializing Firebase before runApp, gating UI on auth state without flicker, structuring Firestore reads as streams instead of one-off gets, securing Storage uploads, deploying Cloud Functions that your app actually calls, and handling FCM tokens across cold start, foreground, and background. The Flutter Kit ships all five services already connected through a single get_it container, so FirebaseAuth, Firestore, Storage, Functions, and Messaging are injected — not scattered as global singletons you call from inside widgets. Each service sits behind a repository, and your BLoC/Cubit talks to the repository. That one layer of indirection is what lets you swap Firebase for Supabase later without touching a screen.

  • firebase_core initialized correctly before runApp with platform options
  • AuthRepository exposing a authStateChanges() stream your AppBloc listens to
  • Firestore reads modeled as typed streams, writes as repository methods
  • Storage upload/download helpers with progress and content-type handling
  • A Cloud Functions client wired to a deployed sample function you can call on day one

The five services, and exactly what's pre-wired

Firebase Auth ships with email/password, Google, Apple, and anonymous sign-in, plus the auth-state listener that drives routing through go_router. Firestore comes with a repository pattern, model serialization, and example collections (profiles, plus a sample data feature) so you see real reads and writes, not a hello-world doc. Cloud Storage handles avatar and file uploads behind a typed repository. Cloud Functions includes a deployable sample function and the callable-function client so your secure server logic is reachable from Dart immediately. FCM push is wired for local and remote notifications with a diagnostics screen that surfaces your token, permission state, and last-received payload — the part most starters skip, and the part that eats a full day when push silently doesn't fire.

  • Auth: email, Google, Apple, anonymous — with pre-built profile and settings screens
  • Firestore + Storage: repository-backed, model-mapped, with working example features
  • Functions + FCM: a deployable sample function and push diagnostics for foreground, background, and cold start

When you should NOT use a Firebase boilerplate

Be honest with yourself about the backend before you buy. If your app is read-heavy with complex relational queries, joins, or row-level security needs, Firestore's document model fights you and Supabase (Postgres) is the better fit — and The Flutter Kit's repository pattern means the Supabase variant is a swap, not a rewrite, but you'd still rather start from the right side. If you already own a REST or GraphQL backend, you don't need Firebase at all; you need the architecture, auth UI, and RevenueCat layer, and you'll delete the Firestore code. And if you're a Flutter learner who genuinely wants to understand how FirebaseAuth's stream drives a router, wiring it by hand once is a worthwhile afternoon. A boilerplate is for the second, fifth, and tenth app — when re-typing the same five services is just tax.

What the Firebase wiring saves you on every new app

The value isn't the first hour saved; it's that you never pay the Firebase setup tax again. No more copying firebase_options.dart between projects, re-deriving the auth-gate, re-debugging why FCM works in the foreground but not the background, or re-writing security-rule-aware repositories from memory. Because AI is a feature-flagged module, you can ship a pure Firebase CRUD app with the AI/OpenAI layer turned off, then flip it on later. RevenueCat sits alongside Firebase for paywalls and entitlements, GA4 handles analytics with GDPR/CCPA consent, and Material 3 design tokens let you retheme from one file. You own the full Dart source, so the Firebase code is yours to extend, audit, or rip out.

The Flutter Kit vs. wiring Firebase from scratch

The Flutter Kit vs Firebase from scratch comparison
FeatureThe Flutter KitFirebase from scratch
Price$69 one-time, unlimited projectsFree packages, but days of your time per app
Auth (email/Google/Apple/anon) + auth-gatePre-wired with go_router state listenerHand-build the stream-to-router glue each time
Firestore + Storage repositoriesRepository pattern, model mapping, examplesYou design the abstraction yourself
Cloud Functions clientDeployable sample + callable clientSet up and test from zero
FCM push diagnosticsToken, permission, payload screen includedUsually the day you lose to silent failures
Backend swappable to SupabaseYes — repository layer isolates itTightly coupled unless you architect for it
Source ownershipFull Dart source, lifetime updatesYour own code, no updates

Frequently Asked Questions

Which Firebase services come already connected in The Flutter Kit?
Five: Firebase Auth (email, Google, Apple, anonymous), Cloud Firestore, Cloud Storage, Cloud Functions (with a deployable sample function and callable client), and FCM push notifications with a diagnostics screen. They share one get_it container and each sits behind its own repository.
Do I have to use my own Firebase project, or is one bundled?
You connect your own Firebase project — you run flutterfire configure to generate your firebase_options.dart, drop in your google-services and plist files, and the wiring picks it up. The kit ships the code structure; the Firebase project and billing stay under your account.
How is FCM push set up so it actually fires in the background?
The kit wires the FCM token lifecycle and a background message handler, and includes a push diagnostics screen showing your current token, notification permission state, and the last received payload. That diagnostics view is specifically there to catch the foreground-works-background-doesn't class of bug that usually costs a day.
Can I drop Firestore and use a relational backend instead?
Yes. Every Firebase service is behind a repository that your BLoC/Cubit talks to, so you can replace the Firestore repository with a Supabase or REST implementation without touching your screens. If you know up front you need Postgres, start from the Supabase angle instead — see the Supabase boilerplate page.
Is the AI/OpenAI layer required if I only want a Firebase CRUD app?
No. The AI module is feature-flagged. You can ship a pure Firebase app — Auth, Firestore, Storage, Functions, FCM — with the OpenAI/ChatGPT features turned off, then enable them later by flipping a flag. You're not forced to carry the Flask AI proxy if you don't use it.
Does the $69 cover Firebase costs too?
No — $69 is a one-time license for the boilerplate source code, with unlimited projects and lifetime updates. Firebase usage (Firestore reads, Storage, Functions invocations, FCM) is billed by Google on its own free-tier-plus-usage pricing under your account. The kit is the code; Firebase is your infrastructure.

Keep exploring

Wire Firebase once. Reuse it forever.

Get The Flutter Kit for $69 one-time — Auth, Firestore, Storage, Cloud Functions, and FCM pre-wired behind a clean BLoC and repository layer. Unlimited projects, lifetime updates, full Dart source.

Get The Flutter Kit — $69

One-time purchase · Lifetime updates · Unlimited projects