1 回答

TA贡献1777条经验 获得超10个赞
是的,所以我经历过同样的问题。这里的问题是文档与 PR 不同步:更改文档的 PR 已合并,但您使用的插件 firebase_auth 尚未更改,因此您仍然拥有旧插件和新文档 ..所以解决方案是:
你必须像下面这样在你的 pubspec 依赖项中精确提交插件:
firebase_auth:
git:
url: https://github.com/FirebaseExtended/flutterfire
path: packages/firebase_auth/firebase_auth
ref: 4a05ceba74c805bc5528137d40c75865cd21d687
并且也在 dependencies_override 下面,像这样(如果不存在,添加它,在 dev_dependencies 部分下面):
dependency_overrides:
firebase_auth_web:
git:
url: https://github.com/FirebaseExtended/flutterfire
path: packages/firebase_auth/firebase_auth_web
ref: 4a05ceba74c805bc5528137d40c75865cd21d687
firebase_auth_platform_interface:
git:
url: https://github.com/FirebaseExtended/flutterfire
path: packages/firebase_auth/firebase_auth_platform_interface
ref: 4a05ceba74c805bc5528137d40c75865cd21d687
顺便说一句,你需要覆盖依赖项的原因是因为 firebase_auth 插件,精确提交仍然使用旧版本的 flutter web 插件
添加回答
举报