腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
Flutter
&
Firestore
:
如何
从
Firestore
获取
所有
DocumentID
?
、
、
、
如何
从
Firebase
获取
所有
DocumentID
并将其放入列表中。String>> getMaterial(BuildContext context) {
Firestore
.instance.collection
浏览 11
提问于2020-09-22
得票数 0
回答已采纳
3
回答
如何
在
flutter
中
从
firestore
文档字段中
获取
数据?
、
、
、
我正试着在我的
flutter
app中测试
firestore
,但是我不能真正按照预期加载数据。下面是我
获取
数据的方式: .collection('Test') .get()// use ds as a snapshot }); 和print-
浏览 0
提问于2019-07-18
得票数 8
1
回答
如何
从
用户Id
获取
firestore
集合文档
、
我是一个全新的dart/
flutter
/firebase新手,很难弄清楚
如何
从
firestore
获取
收集数据。下面是一个无效的集合路径。import 'package:
flutter
/material.dart';importpackage:firebase_au
浏览 10
提问于2021-04-23
得票数 0
5
回答
获取
Firestore
文档的文档ID (
Flutter
)
、
、
enter image description here已经尝试了几天来
从
我的
Flutter
应用程序中
获取
Firestore
中的文档的文档id。当我打开
Firestore
时,我有这个ID和其他值,比如name、address等。 现在我正在尝试理解
如何
将文档id放入一个变量中,然后在我的函数中使用该变量来删除或更新文档。getDocIndex() { .collec
浏览 77
提问于2021-04-27
得票数 0
1
回答
如何
在map函数中等待我未来的函数?(颤动)
、
、
、
所以,我在
Flutter
中构建我的应用程序,不幸的是,我最近遇到了一个错误。因此,我想在我的TestProvider类中做的是
从
firestore
获取
数据( getQuestionFromFirebase()函数正在做的事情),然后,我想从DocumentSnapshot (> getQuestionFromFirebase(String
documentId
) async { return await _
firestore
.collection('questio
浏览 0
提问于2020-12-08
得票数 3
1
回答
具有火基连接的Crud应用程序(颤振)
、
CRUDEModel.dartimport 'package:
flutter
/material.dart'; import '../../Documents/
flutter
_windows_3.3.4-stable/
flutter
/.pub-cache/hosted/pub.dartlang.org/cloud_
firestore
-4.1.0
浏览 8
提问于2022-11-25
得票数 0
回答已采纳
1
回答
如何
在
Flutter
FutureBuilder中引用
Firestore
documentID
、
我有一个工作代码,使用一个未来和一个QuerySnapshot
从
Firestore
获取
一个集合(‘歌曲’)。我把它放在一个小函数getSongs()中。虽然我现在在这个小部件中,但我似乎不知道
如何
引用我的.
documentID
。我可以访问每个document...but的
所有
.data元素,而不是实际的
documentID
。我只想使用
从
Firestore
渲染回来的快照,如果可能的话,直接引用doc.id。import 'pa
浏览 14
提问于2019-05-16
得票数 1
回答已采纳
1
回答
如何
从
firebase文档快照中
获取
子集
、
我按如下方式构建了我的
firestore
数据库: ? 为了在
flutter
中显示数据,我使用streambuilder,如下所示: StreamBuilder<QuerySnapshot>( Spacer(), ], ),
如何
像这样访问子集合: subtitle: Text(docu
浏览 11
提问于2020-04-03
得票数 0
回答已采纳
1
回答
按ids降序
获取
firestore
集合
、
我想
获取
一个文档集合,这些文档按ids降序排列。我该怎么做呢?我应该放在什么地方??才能做到这一点?firebase.
firestore
().collection("users").orderBy(??, "desc").get();
浏览 3
提问于2020-03-24
得票数 0
1
回答
当用户
从
ListView中选择项时
如何
获得元素的id
、
、
、
但是,在用户单击该元素后,我不知道
如何
从
Firestore
中读取元素id。例如,有artist_1和artist_2,用户点击artist_1并
获取
他的id,然后这个id可以用来
获取
有关专辑的信息。import 'package:cloud_
firestore
/cloud_
firestore
.dart';impo
浏览 2
提问于2022-11-13
得票数 0
1
回答
如何
在快照上
从
Firestore
获取
文档ID
、
我正在尝试
从
Firestore
数据库中
获取
documentId
。我的
Firestore
数据库如下所示: - chatMessages - messageId // <-- I want to get this - Object: { text, user, sentAt } 我正在检索数据,如下所示,这是可行的,但我不知道
如何
获取
documentId
: firebase.
fir
浏览 17
提问于2020-06-23
得票数 0
回答已采纳
1
回答
Flutter
snapshot.data()始终为空
、
、
我正在尝试在
Flutter
Web应用程序中显示
Firestore
中的数据,但我没有获得任何数据。基本上,我只是调整了这个示例:import 'package:cloud_
firestore
/cloud_
firestore
.dart/unknown] NoSuchMethodError: invalid member on null: 'includeMe
浏览 18
提问于2020-11-15
得票数 5
1
回答
Flutter
:
如何
在List<String>中
从
firestore
中
获取
数据?
、
、
、
、
大家好,我正在尝试将数据
从
firestore
数据库中
获取
到List<String>中,为此我创建了变量List<String> listCour;,并使用该指令
从
firestore
中
获取
数据
Firestore
.instance.collection('MATH') .collection("cours")
浏览 8
提问于2019-03-18
得票数 2
回答已采纳
1
回答
如何
在
flutter
中有效地访问
firestore
引用字段的数据?
、
、
、
首先,
如何
访问userRef的数据?使用document['userRef'].get().data或document['userRef'].get().username我无法访问数据。class MessageList extends StatelessWidget { Widget build(BuildContext context)
浏览 1
提问于2018-10-19
得票数 6
回答已采纳
2
回答
尝试
从
Firestore
获取
数据时出错
、
、
我正在尝试
从
存储在
Firestore
中的文档中检索数据。我已经尝试了几次来修复这个错误,但都没能找到有用的东西。import 'package:
flutter
/material.dart'; final String
doc
浏览 0
提问于2021-05-29
得票数 0
11
回答
Google
Firestore
-
如何
在一次往返中通过多个in
获取
多个文档?
、
我想知道是否有可能在
Firestore
数据库的一次往返(网络调用)中通过I列表
获取
多个文档。
浏览 106
提问于2017-10-13
得票数 152
回答已采纳
3
回答
获取
按文档Id排序的数据,在
Firestore
中降序
、
、
我希望
从
由
documentId
按降序排序的
Firestore
中
获取
数据。当我打电话: .orderBy(FieldPath.
documentId
(), Query.Direction.DESCENDING)当我单击Create时,会收到一条消息: 对于手动索引创建,只表示按字段名(而不是
documentId
)索引。有谁知道
如何
<e
浏览 3
提问于2017-11-22
得票数 19
1
回答
用StreamBuilder读取包含颤动地图列表的
Firestore
文件
、
、
我想从我的
firestore
集合中读取数据,格式如下 ? 这是下面的类。不知道
如何
使用streamBuilder来阅读文档。我也希望在这种情况下,我可以传递一个选定的订单到下一页。
浏览 5
提问于2020-06-30
得票数 1
回答已采纳
1
回答
从
Firestore
中
获取
数据并将其映射到提供程序对象
、
、
我在
Firestore
与提供者()的结合中遇到了问题。我的问题主要是映射
从
我的类上的防火墙检索到的数据。->将Firebase数据反序列化为Dart类 }import 'package:xxx/providers/run.dart';
浏览 0
提问于2019-08-04
得票数 1
4
回答
flutter
/ dart
如何
检查文件是否存在于
firestore
中?
、
、
、
getok() {
Firestore
.instance.document('collection/$name').get().then((onexist){ onexist.exists
浏览 96
提问于2019-09-11
得票数 5
回答已采纳
点击加载更多
相关
资讯
这可能是Github上最全面的Flutter教程
如何利用BLoC在Flutter和AngularDart中共享代码?
我们弃用 Firebase了
骑上我心爱的小摩托,再挂上AI摄像头,去认识一下全城的垃圾!
Spring Boot教程:构建微服务并部署至Google Cloud
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
云直播
对象存储
活动推荐
运营活动
广告
关闭
领券