database_adapter_firestore_flutter 0.1.0 copy "database_adapter_firestore_flutter: ^0.1.0" to clipboard
database_adapter_firestore_flutter: ^0.1.0 copied to clipboard

discontinued
outdated

An adapter for connecting 'package:database' to Google Cloud Firestore. Works only in Flutter.

Introduction #

Warning: This package is not ready for production systems.

This package enables you to connect database (a vendor-agnostic database API with many adapters) to Google Cloud Firestore.

This package requires Flutter (iOS / Android) because the package relies on cloud_firestore. The package database_adapter_firestore_browser can be used in any browser application.

Getting started #

1.Add dependency #

dependencies:
  database: any
  database_adapter_firestore_flutter: any

2.Configure database #

import 'package:database/database.dart';
import 'package:database_adapter_firestore_flutter/database_adapter_firestore_flutter.dart';

Database getDatabase() {
  return FirestoreFlutter(
    appId: 'Your application ID',
    apiKey: 'Your API key',
  );
}
2
likes
30
pub points
0%
popularity

Publisher

verified publisherdint.dev

An adapter for connecting 'package:database' to Google Cloud Firestore. Works only in Flutter.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

cloud_firestore, database, flutter, meta

More

Packages that depend on database_adapter_firestore_flutter