首页 > 解决方案 > 使用 Firebase 时如何解决 Flutter 中已弃用的 API 错误

问题描述

代码按预期工作,但我收到这些错误

在此处输入图像描述

这是我的 pubspec.yaml 文件

 dependencies:
 

     flutter:
        sdk: flutter
    
      # The following adds the Cupertino Icons font to your application.
      # Use with the CupertinoIcons class for iOS style icons.
      cupertino_icons: ^0.1.2
      cloud_firestore: ^0.13.5
      firebase_auth: ^0.16.0
      image_picker: ^0.6.5+3
      firebase_storage: ^3.1.5

标签: fluttergoogle-cloud-firestoreflutter-web

解决方案


推荐阅读