我想使用云firestore中的两个不同的集合,所以我尝试嵌套流构建器。但是,我不知道如何嵌套快照。我目前得到的错误是: flutter: Another exception was thrown: type '(DocumentSnapshot) => dynamic' is not a subtypeof type '(QueryDocumentSnapshot) => Widget' of
我有一个关于Flutter和Firestore的问题。我想要等到另一个应用程序将bool从Firestore "roomStart“设置为true,以打开一个视图。{ ); }
} enter image description here 我的想法是设置一个setState,但我仍然缺乏正确的方法,有谁有例子或提示吗?我会非常感激的。
我需要在Flutter上实现一个ListView,并且我将snapshot.data.length作为参数传递给itemCount:itemCount然后我得到了一个错误:
I/flutter ( 4647): Class 'List<DocumentSnapshot>' has no instance getter 'length'.I/flutter ( 4647): Receiver: Instance(leng