如何在Flutter Web应用程序中使用Cloud Firestore [英] How to use cloud firestore in Flutter web app

查看:95
本文介绍了如何在Flutter Web应用程序中使用Cloud Firestore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Flutter Web应用程序,我想将我的Flutter Web项目与Cloud Firestore连接,有什么可以将我的项目连接到Cloud Firestore

I am creating a flutter web app ,I want to connect my flutter web project with cloud firestore, is there any to connect my project to cloud firestore

我尝试在pubspec.yaml中导入cloud_firestore:^ 0.12.5 + 2.

I have try import cloud_firestore: ^0.12.5+2 in pubspec.yaml.

因为op依赖cloud_firestore> = 0.3.0,这需要Flutter SDK,所以版本解析失败.

Because op depends on cloud_firestore >=0.3.0 which requires the Flutter SDK, version solving failed.

推荐答案

您现在可以使用官方 cloud_firestore flutter网站中的插件,只需按照自述文件页面中的说明进行操作即可.

You can now use official cloud_firestore plugin in flutter web, just follow the instructions in readme page to integrate plugin.

这篇关于如何在Flutter Web应用程序中使用Cloud Firestore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆