dhruvanbhalara avatar

Flutter Firebase

This is your comprehensive reference for wiring up Firebase in Flutter apps, covering everything from initial setup with flutterfire configure through auth, Firestore, push notifications, Crashlytics, and Analytics. It's opinionated in the right ways: wraps Firebase calls in repository patterns, enforces type safety with Firestore converters, and reminds you to actually write security rules before shipping. The auth guidance is solid, emphasizing secure token storage and proper state management through streams. The Crashlytics section catches a common mistake by showing you how to hook into both Flutter errors and async exceptions. If you're building any Flutter app that needs backend services, this will save you from reinventing patterns that the community has already settled on.

skills.sh installs
341
GitHub stars
30
last updated
Aug 21, 2026

Install

$ npx -y skills add dhruvanbhalara/skills --skill flutter-firebase --agent claude-code

Installs into .claude/skills of the current project.

Files

Firebase Setup

  • Use firebase_core for initialization: call Firebase.initializeApp() before runApp()
  • Use flutterfire configure for platform-specific setup
  • Use separate Firebase projects per flavor (see app-config skill)
  • Register Firebase services via injectable for consistent DI

Authentication

  • Use firebase_auth for user management
  • Wrap all auth calls in an AuthRepository: no direct FirebaseAuth usage in BLoCs or UI
  • Support email/password, Google Sign-In, and Apple Sign-In at minimum
  • Handle auth state changes via FirebaseAuth.instance.authStateChanges() stream in AuthBloc
  • Store auth tokens via flutter_secure_storage: never in SharedPreferences or source code
  • Implement proper sign-out: clear local cache, navigate to login, dispose user-specific BLoCs

Firestore

Sponsors

Details

Repository
github.com/dhruvanbhalara/skills
Categories
Backend & APIs, Security, Data Science & ML, Debugging, Marketing & SEO, Cloud & Infrastructure, Mobile Development, Databases
First seen
Jun 3, 2026

More from dhruvanbhalara/skills

All 15
1nice-wolf-studio avatarsupabase-realtimenice-wolf-studio/claude-code-supabase-skillsSubscribe to realtime changes in Supabase using WebSocket connections. Use for listening to database changes, presence tracking, and broadcast messaging.323skills.sh installs
2patricio0312rev avatarapi-test-suite-generatorpatricio0312rev/skillsGenerates comprehensive API test suites using Jest, Vitest, or Supertest from Express, Next.js, Fastify, or other API routes. Creates integration tests, contrac314skills.sh installs
3sattva2020 avatardokploy-api-mcpsattva2020/skillsDeploy and manage applications on Dokploy (self-hosted PaaS). Use when deploying apps, managing Docker Compose services, databases (PostgreSQL, MySQL, MariaDB, 312skills.sh installs
4davila7 avatarrailway-databasedavila7/claude-code-templatesAdd official Railway database services (Postgres, Redis, MySQL, MongoDB). Use when user wants to add a database, says "add postgres", "add redis", "add database310skills.sh installs
5jezweb avatarclerk-authjezweb/claude-skillsClerk auth with API Keys beta (Dec 2025), Next.js 16 proxy.ts (March 2025 CVE context), API version 2025-11-10 breaking changes, clerkMiddleware() options, webh310skills.sh installs
6davila7 avatarkegg-databasedavila7/claude-code-templatesDirect REST API access to KEGG (academic use only). Pathway analysis, gene-pathway mapping, metabolic pathways, drug interactions, ID conversion. For Python wor295skills.sh installs