来自 git 的 Flutter pubspec 依赖项 (Flutterfire)

Flutter pubspec dependencies from git (Flutterfire)

如何设置我的 pubspec 以使用分叉存储库中的 Flutterfire 依赖项?

firebase_storage:
   git:
      url: https://github.com/marcuslindemannrohden/flutterfire
firebase_core:
   git:
      url: https://github.com/marcuslindemannrohden/flutterfire
firebase_auth:
   git:
      url: https://github.com/marcuslindemannrohden/flutterfire
cloud_firestore:
   git:
      url: https://github.com/marcuslindemannrohden/flutterfire

谢谢!

请使用以下代码

更新您的pubspec.yml
  firebase_storage:
    git:
      url: https://github.com/marcuslindemannrohden/flutterfire.git
      path: packages/firebase_storage/firebase_storage

  firebase_auth:
    git:
      url: https://github.com/marcuslindemannrohden/flutterfire.git
      path: packages/firebase_auth/firebase_auth

  cloud_firestore:
    git:
      url: https://github.com/marcuslindemannrohden/flutterfire.git
      path: packages/cloud_firestore/cloud_firestore