Skip to main content
Point your Firebase Flutter SDK at Lark by passing your Lark URL to FirebaseDatabase.instanceFor(). Everything else (listeners, writes, queries) works without changes.

Setup

Add the Realtime Database plugin to your pubspec.yaml:
Then run:

Connect to Lark

Pass your Lark URL when getting the database instance:
If your firebase_options.dart (generated by FlutterFire CLI) already has the databaseURL, you can update it there instead and use FirebaseDatabase.instance directly.

Database routing

If your Firebase app stores many independent data silos under path prefixes (game rooms, workspaces, etc.), see Database routing for options on splitting them into separate Lark databases.