我已经建立了一个颤振的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 [Version 10.0.18363.836], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.0)
[√] Android Studio (version 3.6)
[√] VS Code (version 1.45.1)
[√] Connected device (4 available)我使用颤振主通道模式来构建Windows应用程序,没有错误。
pubspec.yaml
dependencies:
cloud_firestore:
firebase_core:这些依赖项用于连接我的Cloud_FireStore,但它不适用于windows应用程序。
请帮帮我!谢谢。
发布于 2020-05-22 05:13:27
不幸的是,到今天为止,Firebase的包只支持MacOS,而不是Windows。
发布于 2022-01-31 13:21:10
你试过firedart - https://pub.dev/packages/firedart吗?它支持Windows,文档说明了这一切。
在pubspec.yaml文件中添加-
dependencies:
firedart: ^0.9.0+1然后在main.dart -
import 'package:firedart/firedart.dart';
...
void main() {
const projectId = 'c**d-p**s-3**7';
Firestore.initialize(projectId);
...
}如何获得您的项目to从https://console.firebase.google.com转到云防火墙项目并查找
项目->项目设置->通用->项目ID
这将连接您的颤振Windows桌面应用程序和云防火墙数据库。
https://stackoverflow.com/questions/61940229
复制相似问题