-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase in realtime from StreamBuilder through different pages? #12
Comments
@enri90 I'm not sure if this is the right example. |
Hello, First of all I would like to really thank you @bizz84 for this great source of inspiration. I'm learning Flutter and try to convert an Android Java app to this new framework using your canvas. I think I have a similar question to @enri90. As you set user available on top of the widget tree, I would like to have associated user data (stored in the database) available to all widgets of my app. What would be your advice ? An example: the app manages a list of jobs and the user can select the job to be displayed by default when he opens the app. In the database I have the list of jobs and userData document containing a field selectJob equals to the ID of the job. |
To complement my post above, here an example of the solution I used to customize a selected element in a navigation drawer, but each time I need to nest streambuilder to get the data itself and the user preferences (or whatever):
|
Not sure if I've understood the question correctly, but have you considered StreamProvider from the Provider package? |
The project now uses realtime data with Closing following changes in #94. |
How to share data firebase in realtime from StreamBuilder through different pages?
EntryPage.show( context: context, job: job )
in the second screen am I forced to recall firebase?
The text was updated successfully, but these errors were encountered: