A Dart wrapper for Firebase.
This package contains two implementations of the same Firebase Dart API:
- The
JsFirebaseimplementation usesdart:jsto wrap functionality provided byfirebase.jsin Dart classes. You'll need this implementation to build Firebase apps for the web. - The
MojoFirebaseimplementation 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.
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>