我需要在Flutter上实现一个ListView,并且我将snapshot.data.length作为参数传递给itemCount:itemCount然后我得到了一个错误:
I/flutter ( 4647): Class 'List<DocumentSnapshot>' has no instance getter 'length'.I/flutter ( 4647): Receiver: Instance(leng
但是,我不知道如何嵌套快照。我目前得到的错误是: flutter: Another exception was thrown: type '(DocumentSnapshot) => dynamic' is not a subtypeof type '(QueryDocumentSnapshot) => Widget' of 'f' 这是我的代码: new StreamBuilder(Please Wait');