我的 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] 删除。
我来说两句