由于firebase_数据库,Dart迁移失败

由于firebase_数据库,Dart迁移失败,firebase,flutter,dart,Firebase,Flutter,Dart,当我试着跑的时候 dart migrate 我得到: Bad state: Error: package has unmigrated dependencies. Before migrating your package, we recommend ensuring that every library it imports (either directly or indirectly) has been migrated to null safety, so that you will

当我试着跑的时候

dart migrate
我得到:

Bad state: Error: package has unmigrated dependencies.

Before migrating your package, we recommend ensuring that every library it
imports (either directly or indirectly) has been migrated to null safety, so
that you will be able to run your unit tests in sound null checking mode.  You
are currently importing the following non-null-safe libraries:

  package:firebase_database/firebase_database.dart
  package:firebase_database/src/utils/push_id_generator.dart
但当我经营“飞舞酒吧”时,它就过时了

flutter pub outdated --mode=null-safety
Showing dependencies that are currently not opted in to null-safety.
[✗] indicates versions without null safety support.
[✓] indicates versions opting in to null safety.

All your dependencies declare support for null-safety.
在我的pubscpec.yaml

  firebase_database: ^6.1.0

我不知道为什么它没有被列入
flatterpub
,而是firebase_数据库6。1.x不支持空安全性。您需要7.0.0,它目前仅在
-dev
版本中可用。