我在Firestore中创建了一个名为users的集合,并在其中添加了几个文档。在Flutter的main中,我初始化了StreamProvider class MyApp extends StatelessWidget {
// This widget is the rootWidget中,我希望看到我的集合中有多少<e
我正在尝试使用Flutter和Firestore构建一个应用程序。当使用StreamBuilder从Firestore加载集合以在ListView中显示它时,我得到以下错误 The following assertion was thrown building StreamBuilder: map['creatorId'], name: map['name'] );