我如何将 cloud_firestore 插件(在 flutterfire 包内)的主存储库版本添加到我的应用程序的 pubspec.yaml 中?

普拉迪普·库马兰

我的 flutter 应用程序需要 cloud firestore 的 disableNetwork() 功能。它在 cloud_firestore 的最新版本 (0.13.7) 中不可用它在 git hub 存储库的主存储库中可用。我无法添加指向cloud_firestore的 git 链接,因为它位于存储库flutterfire 中那么,我如何将它添加到我的 pubspec.yaml 文件中。

  cloud_firestore: 
     git: https://github.com/FirebaseExtended/flutterfire.git
理查德·希普

使用此处所述的path选项

例如:

dependencies:
  kittens:
    git:
      url: [email protected]:munificent/cats.git
      path: path/to/kittens

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章