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

How do i add the master repo version of cloud_firestore plugin (inside flutterfire package) to my app's pubspec.yaml?

我需要在我的 flutter 应用程序中使用 cloud firestore 的 disableNetwork() 功能。它在 cloud_firestore . It is available in the master repo of the git hub repository. I could not add the git link which directs to the cloud_firestore package because it is inside the repository flutterfire 的最新版本 (0.13.7) 中不可用。那么,如何将它添加到我的 pubspec.yaml 文件中。

  cloud_firestore: 
     git: https://github.com/FirebaseExtended/flutterfire.git

按照 here 所述使用 path 选项。

例如:

dependencies:
  kittens:
    git:
      url: git@github.com:munificent/cats.git
      path: path/to/kittens