Skip to content
pubscout

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.

WASM-ready
$ flutter pub add firebase_database
Source repository

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.

  • postgrest

    If you prefer a PostgreSQL-backed relational database alternative via Supabase.

Works with

Packages commonly used together with firebase_database: ones it builds on, ones built on it, and its own family.