cloud_firestore_web 0.1.0

The web implementation of cloud_firestore

cloud_firestore_web #

The web implementation of cloud_firestore.

Usage #

Import the package #

To use this plugin in your Flutter app on the web, simply add it as a dependency in your pubspec.yaml alongside the base cloud_firestore plugin.

(This is only temporary: in the future we hope to make this package an "endorsed" implementation of cloud_firestore, so it will automatically be included in your app when you run your Flutter app on the web.)

Add this to your pubspec.yaml:

  cloud_firestore: ^0.13.1
  cloud_firestore_web: ^0.1.0

Updating index.html #

Due to this bug in dartdevc, you will need to manually add the Firebase JavaScript files to your index.html file.

In your app directory, edit web/index.html to add the line:

        <script src=""></script>
        <script src=""></script>
        <script src="main.dart.js"></script>

Using the plugin #

Once you have added the cloud_firebase_web dependency to your pubspec, you can use package:cloud_firebase as normal.