
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-codeInstalls into .claude/skills of the current project.
Files
Firebase Setup
- Use
firebase_corefor initialization: callFirebase.initializeApp()beforerunApp() - Use
flutterfire configurefor platform-specific setup - Use separate Firebase projects per flavor (see
app-configskill) - Register Firebase services via
injectablefor consistent DI
Authentication
- Use
firebase_authfor user management - Wrap all auth calls in an
AuthRepository: no directFirebaseAuthusage 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 inAuthBloc - Store auth tokens via
flutter_secure_storage: never inSharedPreferencesor 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