Skip to main content

Realtime Database

What does it do?#

The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. When you build cross-platform apps Flutter & Firebase, all of your clients can share one Realtime Database instance and automatically receive updates with the newest data.


1. Add dependency#

sdk: flutter
firebase_core: "^0.7.0"
firebase_database: "^6.0.0"

2. Download dependency#

$ flutter pub get

3. (Web Only) Add the SDK#

If using FlutterFire on the web, add the firebase-database JavaScript SDK to your index.html file:

<script src=""></script>
<script src=""></script>

4. Rebuild your app#

Once complete, rebuild your Flutter application:

$ flutter run

Next Steps#

Once installed, you're ready to start using Realtime Database in your Flutter Project.

Additional documentation will be available once the Realtime Database plugin update lands as part of the FlutterFire roadmap.