Firebase across packages #9170
-
Hi! I am creating an app and website with firebase and flutter. While the app and website are two different packages, i refactored many of the similar core components to a third "core" package. I was wondering if it is possible to use firebase across packages? Example: could my app trigger a query function from the core package, using the app's firebase instance? I would prefer it there was a solution that didn't consist of passing the Firestore instance ref around :) Many thanks for amazing tooling! Best regards. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the solution! |
Beta Was this translation helpful? Give feedback.
Found the solution!
Fire firebase instance from the root project in used in all child packages, so everything just works perfectly. Should have tested everything before opening a discussion, sorry!