【发布时间】:2020-06-14 13:16:35
【问题描述】:
StreamBuilder<QuerySnapshot>(
stream: _fireStore.collection('messages').orderBy('creation',descending:
true).snapshots(),
// ignore: missing_return
builder: (context, snapshot) {
if (!snapshot.hasData) {
return Center(
child: CircularProgressIndicator(
backgroundColor: Colors.lightBlueAccent,
),
);
}
// print('i have data');
print(snapshot.data.documents);
打印(snapshot.data.documents);正在打印空值。 'creation' 是添加到火存储中的时间戳字段。
https://github.com/umakanth-pendyala/Chat-app-with-flutter-and-fire-base 是我在 Github 中的项目的链接。而代码sn -p来自lib文件夹中的chat_screen页面
【问题讨论】:
-
您似乎也在 Udemy 参加 Angela 的培训课程。相同的屏幕名称。
标签: firebase flutter dart google-cloud-firestore