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.
Overview #
This is an adapter for the package database that connects it to Google Cloud Firestore.
This package works only in browsers. The package database_adapter_firestore_flutter can be used in Flutter.
Links #
Getting started #
1.Add dependency #
dependencies:
database: any
database_adapter_firestore_browser: any
2.Use it! #
import 'package:database/database.dart';
import 'package:database_adapter_firestore_browser/database_adapter_firestore_browser.dart';
Database getDatabase() {
return FirestoreBrowser().database();
}