-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)Affects many people, though not necessarily a specific customer with an assigned label. (P2)plugin: coretype: documentationImprovements or additions to documentationImprovements or additions to documentationtype: enhancementNew feature or requestNew feature or request
Description
In my project, I use some FlutterFire plugins, like:
Firestore
FirebaseAuth
FirebaseStorage
CloudFunctions
FirebaseAnalytics
FirebaseMessaging
Crashlytics
FirebasePerformance
I miss a pattern when instantiating/getting the instance of the plugins:
using default google.json:
Firestore firestore = Firestore();
FirebaseAuth FirebaseAuth = FirebaseAuth.instance;
FirebaseStorage firebaseStorage = FirebaseStorage();
CloudFunctions cloudFunctions = CloudFunctions();
FirebaseAnalytics firebaseAnalytics = FirebaseAnalytics();
FirebaseMessaging firebaseMessaging = FirebaseMessaging();
Crashlytics crashlytics = Crashlytics();
FirebasePerformance firebasePerformance = FirebasePerformance.instance;
from app:
Firestore firestore = Firestore(app:app);
FirebaseAuth FirebaseAuth = FirebaseAuth.fromApp(app);
FirebaseStorage firebaseStorage = FirebaseStorage(app:app);
CloudFunctions cloudFunctions = CloudFunctions(app:app);
Why when using google.json (default) the plugins FirebaseAuth, FirebasePerformance instantiate in a different way?
Wouldn't it be better if every plugin were instantiated in the same way?
marcglasberg and audkar
Metadata
Metadata
Assignees
Labels
impact: crowdAffects many people, though not necessarily a specific customer with an assigned label. (P2)Affects many people, though not necessarily a specific customer with an assigned label. (P2)plugin: coretype: documentationImprovements or additions to documentationImprovements or additions to documentationtype: enhancementNew feature or requestNew feature or request