-
Notifications
You must be signed in to change notification settings - Fork 92
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display User data #209
Comments
hey @himanshusharma89 i would like to work on this issue under gssoc |
@anotherwebguy Assigned. But talking about the approach, as we already are using StreamBuilder which will give the User stream, we can use your fetchData method(Without FirebaseFirestore Instance call) in line 62 of main.dart and pass down the User and then we can save it locally in a RelicUser Model. |
We need the data from firestore user collection right? So we have to use firebasefirestore.instance ? |
@anotherwebguy Oh yeah, I forgot about the user's collection, okay, so we can just use the stream to check whether that particular uid exists in the users collection, if so we will pass it to our RelicUser model. |
Yes @himanshusharma89 i'll make a pr by tomorrow |
Use the User data to display it in the Home and Profile Screen
Discussion 馃棧
We have saved the user data to firestore , now we need to use that user to display the
name
andemail
in thehome screen
andprofile screen
Context
You can use the existing StreamBuilder in
main.dart
to store the User, or you can propose a different method to do that.The text was updated successfully, but these errors were encountered: