Skip to main content

cloud_firestore_dart_flutterfire 0.1.2 copy "cloud_firestore_dart_flutterfire: ^0.1.2" to clipboard
cloud_firestore_dart_flutterfire: ^0.1.2 copied to clipboard

Unofficial bridge from FlutterFire (firebase_core, firebase_auth) to cloud_firestore_dart: the pure-Dart Firestore client uses the FlutterFire app options and signed-in user.

0.1.2 #

No code change. A shorter package description (it was 190 characters, which pub.dev scores as too long).

0.1.1 #

No code change. The constraint on cloud_firestore_dart is >=0.2.0 <0.4.0 instead of ^0.2.0, so that the package can be used with cloud_firestore_dart 0.3.0. It compiles against 0.2.0 and 0.3.0.

0.1.0 #

First version, built against the 0.2 API of cloud_firestore_dart and firebase_app_dart.

  • FlutterFireBridge.firestore(): a cloud_firestore_dart FirebaseFirestore instance for a FlutterFire app (default Firebase.app()) and the user of its FirebaseAuth, in one call. FlutterFireBridge.app() returns the firebase_app_dart app alone, and FlutterFireBridge.waitForCurrentUser() waits until Firestore follows the plugin's current user after a sign-in or a sign-out.
  • firebaseOptionsFromFlutterFire and dartAppFor: the firebase_app_dart options (every field but recaptchaSiteKey) and app for the options and the name of a FlutterFire app.
  • FlutterFireAuthTokenProvider: an AuthTokenProvider of firebase_app_dart, backed by firebase_auth. It follows idTokenChanges() (sign-in, sign-out, user switch, token refresh), forwards forceRefresh to User.getIdToken, throws FirebaseNoSignedInUserException when nobody is signed in, and drops a token fetched for a user that was replaced meanwhile.
  • FlutterFireAppCheckProvider: an AppCheckTokenProvider of firebase_app_dart, from the getToken and onTokenChange of firebase_app_check (passed in; this package does not depend on firebase_app_check).
  • Requires Dart 3.8 and Flutter 3.32 or later; firebase_core 3 to 5 and firebase_auth 5 to 7.

Verified with unit tests and fakes of the plugins only. Nothing was run in a Flutter app with the real plugins or against a real Firebase project.

0
likes
160
points
194
downloads

Documentation

API reference

Publisher

verified publisherupcode.dev

Weekly Downloads

Unofficial bridge from FlutterFire (firebase_core, firebase_auth) to cloud_firestore_dart: the pure-Dart Firestore client uses the FlutterFire app options and signed-in user.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#firebase #firestore #flutterfire #authentication

License

Apache-2.0 (license)

Dependencies

cloud_firestore_dart, firebase_app_dart, firebase_auth, firebase_core, flutter, rxdart

More

Packages that depend on cloud_firestore_dart_flutterfire