【发布时间】:2022-01-22 15:12:24
【问题描述】:
我尝试了很多东西,但它一直显示错误:
children: snapshot.data!.docs.map((document) {
final data = document.data()! as Map<String, dynamic>;
print(data);
return ProductCard(
title: Text(data["name"]),
imageUrl: document.data()['images'][0],
price: "\$${document.data()['price']}",
productId: document.id, onPressed: (){},
);
}).toList(),
);
【问题讨论】:
-
请阅读Under what circumstances may I add “urgent” or other similar phrases to my question, in order to obtain faster answers? - 总结是这不是解决志愿者的理想方式,并且可能会适得其反。请不要将此添加到您的问题中。
标签: flutter google-cloud-firestore product