Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.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
Flutter 如何存储到列表和地图?_Flutter_Dart_Flutter Layout_Dart Pub - Fatal编程技术网

Flutter 如何存储到列表和地图?

Flutter 如何存储到列表和地图?,flutter,dart,flutter-layout,dart-pub,Flutter,Dart,Flutter Layout,Dart Pub,我想像这样储存到firebase 我的问题是 FirebaseFirestore.instance.collection('matches').doc(current.uid).set({ 'matches.age':hhhhhh, 'matches.picture':hhhhhh, }) 创建特定的数据列表和数据映射或任何您想要的结构,然后传入set方法,我希望这能解决您的问题。您能提供有关您试图实现的目标的更多详细信息吗?我有一个小部件,显示所有用户列表,所以,如果用户点击另一个人的信

我想像这样储存到firebase

我的问题是

FirebaseFirestore.instance.collection('matches').doc(current.uid).set({

'matches.age':hhhhhh,
'matches.picture':hhhhhh,
})

创建特定的数据列表和数据映射或任何您想要的结构,然后传入set方法,我希望这能解决您的问题。

您能提供有关您试图实现的目标的更多详细信息吗?我有一个小部件,显示所有用户列表,所以,如果用户点击另一个人的信息,他会在匹配列表中显示它。。。。。。所以用户可以点击尽可能多的用户请给我一个示例代码。。。