我想为嵌套的firebase数据库创建一个嵌套文件,如下所示:
Category{
Main{
Books{
Literature{
Name: "American Origin",
Author: "James Odla"
}
}
}
}
}
例如StreamBuilder
,如果您使用的是ListView.builder()
流,并且如果要获取类别快照,则=>Firestore.instance.collection("categories").snapshots()
您应该能够获得被单击的类别=>snapshot.data.documents[index]
和项=> snapshot.data.documents[index]['items']
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句