I want to retrieve data from firebase firestore and display it inside a Text widget in flutter. So once the User logs into the application, the user can see his name right there (which is retrieved from firebase firestore). I have linked the firebase User_ID
as my document id in firebase firestore.
The data which is retrieved from firebase firestore must be displayed in the Text Widget at all times (I want to retrieve the name from a document from firebase firestore and display it to ther user in the Text Widget).
How can i do this?
CodePudding user response:
You need to sit down and read the documentation of flutter fire, which if very complete and well explained Yoy can start here and if you want videos there are a good start point here
CodePudding user response:
so I understand and it's totally normal to be lost sometimes. Open the FlutterFire documentation or try YouTube, connect your application to your Firebase database at first. Then you should use the syntax/API they provide for showing text or something. At first, fetch the value then store it in your local variable then show that variable in your Text(variable_here).