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.
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.
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
| Feature | The Flutter Kit | Firebase from scratch |
|---|---|---|
| Price | $69 one-time, unlimited projects | Free packages, but days of your time per app |
| Auth (email/Google/Apple/anon) + auth-gate | Pre-wired with go_router state listener | Hand-build the stream-to-router glue each time |
| Firestore + Storage repositories | Repository pattern, model mapping, examples | You design the abstraction yourself |
| Cloud Functions client | Deployable sample + callable client | Set up and test from zero |
| FCM push diagnostics | Token, permission, payload screen included | Usually the day you lose to silent failures |
| Backend swappable to Supabase | Yes — repository layer isolates it | Tightly coupled unless you architect for it |
| Source ownership | Full Dart source, lifetime updates | Your own code, no updates |
Frequently Asked Questions
Which Firebase services come already connected in The Flutter Kit?
Do I have to use my own Firebase project, or is one bundled?
How is FCM push set up so it actually fires in the background?
Can I drop Firestore and use a relational backend instead?
Is the AI/OpenAI layer required if I only want a Firebase CRUD app?
Does the $69 cover Firebase costs too?
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 — $69One-time purchase · Lifetime updates · Unlimited projects