How to Display User Profile Image and Name in AppBar of Chat Screen in Flutter?
I’m building a Flutter app where users can chat with each other. I have implemented user authentication and can store user profile information such as the profile image link and name in Firestore. Now, I want to display the user’s profile image and name in the AppBar of the chat screen.Requirements:
Flutter: Firestore running out of main thread
Im trying to use Firestore on my flutter app but firebase is not running in the main thread
It actually works setting the docs but i get an error showing on each transaction
[ERROR:flutter/shell/common/shell.cc(1055)] The 'plugins.flutter.io/firebase_firestore/transaction/ac27d098-dd91-4050-b7a4-8fe66de5ab48' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
How do I store my user details into a collection on firebase database while using the flutter fire ui authentication
I want to store the details of the user in a collection in my firestore database when I signup with the flutter fire UI auth package. so I can update the user details when I click on the profile screen