Relative Content

Tag Archive for flutterfirebasedartgoogle-cloud-firestore

Receiver Email Not Showing in Firestore Messages Collection

I’m working on a chat application using Flutter and Firebase. I’m trying to save and retrieve messages between users, including the receiver’s email, but the receiver email is not appearing in my Firestore collection. Here is my code:

How to Fetch and Display Receiver’s Email in Firebase for a Chat Application in Flutter?

I am developing a chat application using Flutter and Firebase. I need to fetch the receiver’s email from Firebase and display it correctly in the chat screen. Additionally, I want to use the receiver’s email when sending messages. However, I am encountering issues with fetching and displaying the receiver’s email. Below are the details of my current implementation:

Pulling from firebase; data being stored in unicode order of values rather then index of array

So I am working on a fitness app in flutter with firebase. I have this “freestyles” workout data structure where I am storing the exerciseIds of the exercises done in that workout. They’re being stored in an array “exerciseIds” where the indices are the order that I want. However, in my attempt to pull and retrieve that data back into my code, it is ordering it in alphanumerical order (or unicode order).

Displaying last seen status of user in Flutter using Firestore timestamps

I’m developing a Flutter application where I need to display the last seen status of a user in the chat page. I’m retrieving the user’s last seen timestamp from Firestore and attempting to format it for display in the app’s AppBar. However, I’m encountering issues with converting the Firestore Timestamp to a DateTime object and subsequently formatting it correctly.