Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在cloud firestore中访问文档中的对象?_Cloud_Flutter_Google Cloud Firestore - Fatal编程技术网

如何在cloud firestore中访问文档中的对象?

如何在cloud firestore中访问文档中的对象?,cloud,flutter,google-cloud-firestore,Cloud,Flutter,Google Cloud Firestore,我在我的Flatter应用程序中使用cloud firestore 我有一个文档,其中有一个对象,该对象又有几个键值对 大概是这样的: child "jamesjr", message Time August 19, 2018 at 12:00:00 AM UTC+5:30 msgbody "Hello, This is the first private message model" pic1 "https://www.bing.com/th?id=OIP.HXmR02Xik3jiwFr8aN

我在我的Flatter应用程序中使用cloud firestore

我有一个文档,其中有一个对象,该对象又有几个键值对

大概是这样的:

child "jamesjr",
message
Time August 19, 2018 at 12:00:00 AM UTC+5:30
msgbody "Hello, This is the first private message model"
pic1 "https://www.bing.com/th?id=OIP.HXmR02Xik3jiwFr8aN6NyQHaD4&w=269&h=149&c=7&o=5&pid=1.7"
pic2 "https://www.bing.com/th?id=OIP.Y11MMH-KHgXj0GyJJKC3lgHaFJ&w=255&h=177&c=7&o=5&pid=1.7",
reciever "wjames",
sender "steaher" ,

现在,我了解到我可以使用

Text('${ds['child']}')
但是,如何读取文档中对象“
消息”
”下的“
msgbody

先谢谢你