Flutter 如何从子集合获取数据?
如何获取子集合中的所有文档 试试这个Flutter 如何从子集合获取数据?,flutter,Flutter,如何获取子集合中的所有文档 试试这个 Firestore.instance .collection('AddToCart') .document('loginUsersDmYK00vMfyfJgfeKb8x0nnOa3Jn1') .collection('Sell').getDocuments().then((ds){ for(int i=0; i<ds.documents.length;i++){
Firestore.instance
.collection('AddToCart')
.document('loginUsersDmYK00vMfyfJgfeKb8x0nnOa3Jn1')
.collection('Sell').getDocuments().then((ds){
for(int i=0; i<ds.documents.length;i++){
print("ProductName ==> ${ds.documents[i]['productName']}");
}
});
Firestore.instance
.collection('AddToCart')
.document('loginusersdmyk00vmfyfjgfeb8x0nnoa3jn1')
.collection('Sell').getDocuments().then((ds){
对于(int i=0;i试试这个
Firestore.instance
.collection('AddToCart')
.document('loginUsersDmYK00vMfyfJgfeKb8x0nnOa3Jn1')
.collection('Sell').getDocuments().then((ds){
for(int i=0; i<ds.documents.length;i++){
print("ProductName ==> ${ds.documents[i]['productName']}");
}
});
Firestore.instance
.collection('AddToCart')
.document('loginusersdmyk00vmfyfjgfeb8x0nnoa3jn1')
.collection('Sell').getDocuments().then((ds){
对于(int i=0;i)您面临的问题是什么?您面临的问题是什么?