firebase_database
13.1.0, released 5 days ago by firebase.google.com
Flutter plugin for Firebase Realtime Database with offline access and realtime syncing.
What it does
Connects your Flutter app to the Firebase Realtime Database, allowing you to store and sync data in JSON format across clients in real time. It supports offline access and multiple platforms including Android, iOS, web, Windows, and macOS.
AI-written summary of version 13.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need real-time data synchronization across clients
- You are already using Firebase as your backend service
- You require offline data persistence capabilities
Skip it when
- You need complex relational querying and SQL joins
- You are not using Firebase for your backend infrastructure
Strengths
- Real-time data synchronization
- Built-in offline data access
- Cross-platform support (mobile, web, and desktop)
Weaknesses
- Limited querying capabilities compared to SQL databases
- Tied directly to the Firebase ecosystem
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires configuring Firebase for your project, adding the required native dependencies, and initializing firebase_core.
FirebaseDatabase.instance.ref('path/to/data');Alternatives
Packages that do the same job and could replace firebase_database.
Works with
Packages commonly used together with firebase_database: ones it builds on, ones built on it, and its own family.
- firebase_corefirebase_database depends on itFlutter plugin that initializes Firebase and allows multiple Firebase app connections.
- firebase_core_webSame familyWeb implementation of firebase_core for Flutter apps.
- firebase_messagingSame familyFlutter plugin for Firebase Cloud Messaging to deliver messages on Android, iOS, web, and macOS.
- firebase_messaging_webSame familyWeb implementation of Firebase Cloud Messaging for push notifications.
- firebase_analyticsSame familyFlutter plugin for Google Analytics for Firebase.
- firebase_crashlyticsSame familyFlutter plugin that sends uncaught errors and crash reports to Firebase Crashlytics.
- firebase_authSame familyFlutter plugin for Firebase Authentication enabling passwords, phone numbers, and identity providers.
- firebase_auth_webSame familyWeb implementation of Firebase Authentication for Flutter