我正在尝试将我的 Flutter 项目升级到 Flutter2。我看到我所有的包都是空安全的,但是bulid_runner
.
$ 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.
Package Name Current Upgradable Resolvable Latest
direct dependencies: all support null safety.
dev_dependencies:
build_runner ✗1.12.2 - ✗1.12.2 ✗1.12.2
No resolution was found. Try running `flutter pub upgrade --null-safety --dry-run` to explore why.
1 dependency is constrained to a version that is older than a resolvable version.
我的问题是如何在不支持如此重要的软件包的情况下升级到 Flutter2。我该如何解决这个问题?有没有人看到这个问题?