简体   繁体   English

每次在firebase实时数据库中添加新子项时,如何更新flutter应用程序中的列表

[英]How do I update a list in flutter app everytime a new child is added in firebase realtime database

I have a flutter application in which I need to update the list in realtime every time a new child is added to the database. 我有一个颤动的应用程序,我需要在每次将新子项添加到数据库时实时更新列表。 I have tried looking for it everywhere but nothing is working. 我试过在任何地方寻找它,但没有任何工作。 Please provide an example code to implement it. 请提供实现它的示例代码。

Check out this post about CRUD operations with firebase. 查看这篇关于使用firebase进行CRUD操作的帖子。 What you are looking for is basically the Read part. 您正在寻找的基本上是阅读部分。 Using a stream to listen to the changes made in your firebase reference. 使用流来监听firebase引用中所做的更改。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 每次在 android 中添加新数据时,如何检测 Firebase 实时数据库中的变化并发送通知? - How to detect change in Firebase realtime database and send notification everytime a new data is added in android? 如何用 firebase 实时数据库中的新字段更新子项? - How to update child with new fields in firebase realtime database? 我如何消除实时数据库中自动生成的密钥 firebase flutter - How do i eliminate the autogenerated key in realtime database firebase flutter 如何在Firebase Realtime数据库中每次进行OTP验证? - How to do OTP Verification everytime in Firebase Realtime database? 我如何获取连接到实时 firebase 数据库的 android 应用程序以在实时数据库中更新时创建吐司? - how do i get my android app which is connected to a realtime firebase database to create a toast on update in the realtime database? 将新数据添加到特定子项时,如何使用 Cloud Functions 将数据写入 Firebase 实时数据库 - How to Write Data Into Firebase Realtime Database with Cloud Functions when new Data is added to a Specific Child 使用 flutter 中的新密码重置更新 firebase 防火墙和实时数据库 - Update firebase firestore and realtime database with new password reset in flutter 如何在Firebase实时数据库中检索所有子级的列表? - How do I retrieve a list of all children in a Firebase realtime database? Firebase 实时:如何在 Firebase 数据库 javascript 中更新子项的特定值 - Firebase realtime:How to update particular value of child in Firebase Database javascript 如何 Firebase Firestore 实时更新只添加新数据来收集? - How to Firebase Firestore realtime update Only new data added to collect?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM