flutter sdk 版本升级到2.0或者更高的版本后就发现运行时会报错:
Error: Cannot runwithsoundnullsafety, because the following dependenciesdon'tsupportnullsafety
也就是说以上有些包不支持 safety模式。
解决方案:--no-sound-null-safety
run flutter run --no-sound-null-safety
build flutter build apk --no-sound-null-safety