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.

Installation#

1. Make sure to initialize Firebase#

Follow this guide to install firebase_core and initialize Firebase if you haven't already.

2. Add dependency#

On the root of your Flutter project, run the following command to install the plugin:

flutter pub add firebase_database

3. 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.

View the Usage documentation to get started.