Hi,
I’m trying to find a way to have values on my mobile app screens update automatically whenever there’s a change in Firestore. For instance, on the home screen dashboard, there's a counter showing the number of pending appointments. I want this counter to update in real-time whenever a new pending appointment is added, without requiring the user to manually refresh the screen.
I understand that StreamBuilder
could be a solution, but I'm not very familiar with how to implement it. Another approach I considered is using a continuous loop (e.g., every 30 seconds) to refresh the dashboard.
Has anyone encountered a similar situation? Any advice or solutions would be greatly appreciated!