Relative Content

Tag Archive for fluttergoogle-cloud-firestore

Flutter and Firestore best way to do a live chat message stream with pagination

Trying to figure out the best approach to streaming messages in a chat app for realtime delivery and updates (for things like reactions). Currently in testing Im using a simple Stream, that I update the limit of the query based on pagination. This works to get new messages and show reactions on older messages. But it does a bunch of queries as the pagination calls all the previous messages as well.

Flutter Firebase search Function

In my app, I have a search function from Firestore. When I search a name in the TextField, I get what I want. When I delete the text (in the process of searching by using the backspace) and search again, I also get what I want. However when I clear the search button (by clicking on the clear Icon), and search again I don’t get any results. What did I do wrong?