How to listDocuments() as a Stream of data from an Appwrite database with Flutter?
376
Apparently, this functionality is still in beta. It's called Appwrite Realtime. You can find all information about it here.
Author by
Noodles
Updated on December 01, 2022Comments
-
Noodles over 1 year
I am using a
StreamBuilder
to build my widget. Butdatabase.listDocuments()
only returns aFuture
. Is there a way to get a stream of documents which automatically triggers a widget rebuild on a database update just as with Firebase'ssnapshots()
stream?-
pskink almost 3 yearsnope, it seems that
Stream
s are not supported -
dlohani almost 3 yearsHey @FrankvanPuffelen, I'm Damodar from Appwrite team 1. The Appwrite database in stable version (0.9) doesn't yet support realtime capability so there is no way to get stream there, you can use FutureBuilder and use it along with some kind of state management solution to make it work 2. As mentioned in the answer by Noodles below, realtime support is in preview version learn more about it here notion.so/…
-
Frank van Puffelen almost 3 yearsThat sounds like a perfect answer @dlohani! 👍
-