Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflect Real Time Change from Database #10

Open
lightspect opened this issue Nov 26, 2020 · 1 comment
Open

Reflect Real Time Change from Database #10

lightspect opened this issue Nov 26, 2020 · 1 comment

Comments

@lightspect
Copy link

Hi Ken,
Thank you for making this. This is a not an issue but rather a question:
I am building a Chat App with Flutter and FireStore. At first I just stream the data directly to Stream Builder and store reusable data like user data in Shared Preferences, but this might cause a lot of calls to the database for non-reusable data. So I search and find out about using provider with Firestore and find your project. My question is, if using Provider, can the data reflect changes in real time if there are changes in the database, like if an user change their name and all people in their friend list can see the changed name? Or in a chat group, if someone send a message, will other see them also or do they have to refresh the data? I know it might not related too much to the project but I am planning on scrapping my current one and use your as a template to build it if it match the above critia.

@KenAragorn
Copy link
Owner

hi @lightspect ,

Yes, it is possible especially with Firebase. To be honest, this current example of project that utilize the concept of todo collection is almost live update. You can try using 2 mobile phone and connect to the same todo title, and then you can try to add or make changes. You can see live changes on the other phone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants