A Dart wrapper for Firebase.
This package contains two implementations of the same Firebase
Dart API:
- The
JsFirebase
implementation usesdart:js
to wrap functionality provided byfirebase.js
in Dart classes. You'll need this implementation to build Firebase apps for the web. - The
MojoFirebase
implementation uses Mojo to wrap functionality provided by Firebase iOS and Android SDKs. You'll need this implementation to build Firebase apps with Flutter.
Right now the MojoFirebase
implementation is default, but you can change this in lib/src/firebase.dart. Once dart-lang/sdk#24581 is fixed you'll get the right implementation automatically.
Installing
Follow the instructions on the pub page.
The firebase.js library MUST be included for the JavaScript wrapper to work:
<script src="https://cdn.firebase.com/js/client/2.3.2/firebase.js"></script>