首页 > 解决方案 > Cloud_Firestore 包颤振/没有调试控制台错误

问题描述

我正在尝试将 cloud_firestore 包添加到我的 web 颤振应用程序中。将包添加到依赖项后,应用程序将无法运行。

Chrome 窗口打开并返回一个空白屏幕。调试服务打开但没有数据。

请帮忙!

调试控制台读取

"调试服务监听 ws://127.0.0.1:58031/ACok2ufXaZM="

pubspec.yaml 如下

version: 1.0.0+1

environment:
  sdk: ">=2.6.0 <3.0.0"

analyzer:
  enable-experiment:
    - spread-collections

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
  firebase_core: ^0.4.0+9
  firebase_auth: ^0.14.0+5
  firebase_analytics: ^5.0.2
  cloud_firestore: ^0.13.4+2
  expandable: ^2.2.0
  responsive_builder: ^0.1.2
  get_it:
  provider_architecture:
  #   path: ../provider_architecture
  provider: ^3.1.0
  http: ^0.12.0+2

dev_dependencies:
  flutter_test:
    sdk: flutter


标签: firebasefluttergoogle-cloud-firestore

解决方案


推荐阅读