草庐IT

firestore

全部标签

flutter - 按照 Firebase for Flutter 教程添加 firestore 依赖项后运行 iOS 模拟器时出错

我一直在学习一些Flutter教程,最近尝试学习FirebaseforFlutter教程,可以在这里找到:https://codelabs.developers.google.com/codelabs/flutter-firebase/我按照教程所说创建了一个新项目,在Android和iOS上测试运行它并且运行良好。然后,我将cloud_firestore:^0.8.0添加到pubspec.yaml文件中,并按照教程中的说明运行“Packagesget”。现在每当我尝试在iOS模拟器中运行该项目时,我都会收到以下错误:***Firstthrowcallstack:(0CoreFound

dart - 在 flutter 中获取 Firestore 文档的 documentID?

Flutter如何获取Firestore中文档生成的documentID?我知道我可以像这样访问文档的各个字段:returnFirestore().collection(postPath).data.documents.forEach((response){nodeList.add(Post(//response.data().id-howdoigettheUID(example:-LUoDIu4wlVksjbbfIWE)?response['content'],response['date'],response['flair'],response['location'],respon

dart - 在 flutter 中获取 Firestore 文档的 documentID?

Flutter如何获取Firestore中文档生成的documentID?我知道我可以像这样访问文档的各个字段:returnFirestore().collection(postPath).data.documents.forEach((response){nodeList.add(Post(//response.data().id-howdoigettheUID(example:-LUoDIu4wlVksjbbfIWE)?response['content'],response['date'],response['flair'],response['location'],respon

android - 在 flutter 中发布 apk android 在启动时崩溃

我认为我的问题是因为我在我的应用程序中使用了Cloudfirestore。有些设备崩溃,有些没有。(S7samsungverizonandroid8.0崩溃,A5samsungandroid6.0没有崩溃......)。我使用logcat获取导致崩溃的日志,这是错误:java.lang.RuntimeException:InternalerrorinFirestore(0.6.6-dev).atcom.google.firebase.firestore.obfuscated.zzgf.zzb(com.google.firebase:firebase-firestore@@17.1.1:

android - 在 flutter 中发布 apk android 在启动时崩溃

我认为我的问题是因为我在我的应用程序中使用了Cloudfirestore。有些设备崩溃,有些没有。(S7samsungverizonandroid8.0崩溃,A5samsungandroid6.0没有崩溃......)。我使用logcat获取导致崩溃的日志,这是错误:java.lang.RuntimeException:InternalerrorinFirestore(0.6.6-dev).atcom.google.firebase.firestore.obfuscated.zzgf.zzb(com.google.firebase:firebase-firestore@@17.1.1:

firebase - Firestore 为 noSQL 和 Flutter 复制 SQL Join

我意识到在使用NoSql文档数据库(例如FireStore)复制连接方面存在很多问题,但是我无法找到将Dart/Flutter与FireStore结合使用的彻底解决方案。我做了一些研究,我觉得在下面的例子中我会寻找一个“多对多”的关系(如果这是错误的,请纠正我)因为将来可能还需要查看所有配置文件作为所有连接。在firebase中,我有两个根级集合(配置文件和连接):profile>documentKey(AutoGenerated)>name="JohnSmith">uid="xyc4567">documentKey(AutoGenerated)>name="JaneDoe">uid=

firebase - Firestore 为 noSQL 和 Flutter 复制 SQL Join

我意识到在使用NoSql文档数据库(例如FireStore)复制连接方面存在很多问题,但是我无法找到将Dart/Flutter与FireStore结合使用的彻底解决方案。我做了一些研究,我觉得在下面的例子中我会寻找一个“多对多”的关系(如果这是错误的,请纠正我)因为将来可能还需要查看所有配置文件作为所有连接。在firebase中,我有两个根级集合(配置文件和连接):profile>documentKey(AutoGenerated)>name="JohnSmith">uid="xyc4567">documentKey(AutoGenerated)>name="JaneDoe">uid=

firebase - Firestore : Getting a subcollection from a DocumentSnapshot

我正在使用Firestore作为Flutter项目的后端,数据库嵌套在文档下有子集合。结构如下:我有从Root集合中找到的数据,我试图从那里获取子集合,但我不知道如何获取。应该有可用的get()方法,但我没有得到。函数代码如下:void_getNext(DocumentSnapshotdoc)async{intv=doc.data.length;Stringid=doc.documentID;print('length=$v\tid=$id');awaitdoc.reference.get().then((val){val.data.forEach((k,v){print('k=$k&

firebase - Firestore : Getting a subcollection from a DocumentSnapshot

我正在使用Firestore作为Flutter项目的后端,数据库嵌套在文档下有子集合。结构如下:我有从Root集合中找到的数据,我试图从那里获取子集合,但我不知道如何获取。应该有可用的get()方法,但我没有得到。函数代码如下:void_getNext(DocumentSnapshotdoc)async{intv=doc.data.length;Stringid=doc.documentID;print('length=$v\tid=$id');awaitdoc.reference.get().then((val){val.data.forEach((k,v){print('k=$k&

android - Flutter:Firestore 组件不存在

我在Flutter下的Firestore数据库有问题。我已经完成了一切,包设置文档所说的,查看了2-3个完成的公共(public)应用程序,并尝试像其他人一样使用包。我什至尝试实现nativeFirestore初始化,因为我认为问题出在平台方面,但应用程序仍然可以获取java.lang.NullPointerException:Firestorecomponentisnotpresent.当我尝试使用Firestore实例时。我在project/build.gradle中设置classpath'com.google.gms:google-services:4.0.1'对于依赖和导入'c