【问题标题】:Flutter pubspec dependencies from git (Flutterfire)来自 git (Flutterfire) 的 Flutter pubspec 依赖项
【发布时间】:2021-07-03 22:13:54
【问题描述】:

如何设置我的 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

谢谢!

【问题讨论】:

    标签: firebase flutter flutter-dependencies


    【解决方案1】:

    请使用以下代码更新您的 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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-16
      • 1970-01-01
      • 1970-01-01
      • 2013-03-22
      • 1970-01-01
      • 2013-12-03
      相关资源
      最近更新 更多