我已经建立了一个颤振的android应用程序,它与Cloud_FireStore数据库一起工作。现在,我想要将我的Cloud_FireStore数据库连接到我的find应用程序,但是我找不到任何用于Cloud_FireStore插入find的资源,也找不到如何将Cloud_FireStore连接到Windows的资源。
我的颤栗医生,
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 1.19.0-2.0.pre.131, on Microsoft Windows [
我有一个未来,它从我的Cloud Firestore数据库中获取一个值,并在我的应用程序主体中显示一个图标。如果数据库中的值发生更改,则图标也会更新。我一直在使用setState重建我的窗口小部件树,这很好用-应用程序几乎可以立即对我的Cloud Firestore数据库中的更改做出反应。这太棒了!代码:
Future<void> takenSurvey2() async {
final sn = await Firestore.instance
.collection('Controller')
.document('Current Sur
当我使用DocumentSnapshot时,我正在开发一个flutter app.My flutter项目在工厂构造函数中显示错误 User.dart import 'package:cloud_firestore/cloud_firestore.dart';
class User {
final String id;
final String username;
final String email;
final String photoUrl;
final String displayname;
final String bio;
User
我试图在flutter应用程序中手动设置DocumentID,但它一直在我的文档中创建一个名为documentID的新字段。如何设置我的文档? final barcode = TextEditingController();
final price = TextEditingController();
final stock = TextEditingController();
final color = TextEditingController();
///the above are textformfield controllers I use for the da
我正在测试登录用户B访问用户A的文档的权限。用户B已经在其路径/userData/uid_B/ uid_A /uid_A中保存了订阅者。在这种情况下,我想通过检查Firestore规则中的subscriber来访问A的文档。
service cloud.firestore {
..
match /databases/{database}/documents {
match /userData/{uid}/{document=**} {
allow create, read, update, delete: if exists(/databases/{database
我正在尝试获取本flutter教程所需的cloud_firestore包:
当我运行flutter packages get时,我只能返回:Package cloud_firestore has no versions that match >=0.7.0 <0.8.0 derived from...
网站上的cloud_firestore包显示最新版本是0.7.2,我也尝试过该版本,但得到了相同的错误。
我还尝试了flutter的dev、master和beta通道,但没有成功获得这个包。
下面是我的pubspec.yaml文件:
name: test_app
descriptio