database_adapter_firestore_browser 0.2.0 database_adapter_firestore_browser: ^0.2.0 copied to clipboard
An adapter for connecting 'package:database' to Google Cloud Firestore. Works only in browsers.
import 'package:database/database.dart';
import 'package:database_adapter_firestore_browser/database_adapter_firestore_browser.dart';
Database getDatabase() {
return FirestoreBrowser.initialize(
appId: 'Your application ID',
apiKey: 'Your API key',
).database();
}