我试图使用Streambuilder侦听来自Firebase firestore的实时文档,同时在CustomScrollView和SliverList中显示检索到的数据,但当我这样做时,列表会断开,>( builder: (context, AsyncSnapshot<: The following NoSuchMethodError was thrown bui
首先,如何访问userRef的数据?使用document['userRef'].get().data或document['userRef'].get().username我无法访问数据。在这里,数据库是实时更新的,但是没有必要对ListView中的多个消息进行相同的查找。>( builder: (BuildContext con
我的应用程序用户将通过TextForm字段在FIrestore中创建一个集合,这个集合包含一些文档。在我的StreamBuilder中,我已经设置了流,我可以获取文档,但我无法检索使用snapshot.data.lenght登录的用户创建的文档的数量,我得到了错误: final String location;
Str