Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
即使我添加了最近的依赖项,即“启动画面:^1.3.5”,如何解决初始屏幕中的空安全库错误
要导入没有 null 安全支持的包,请降低您的颤振版本pubspec.yaml
pubspec.yaml
替换environment为波纹管版本
environment
environment: sdk: ">=2.06.0 <3.0.0"
注意:这是在没有空安全支持的情况下使用外部包的一种方法。如果它是一个现有项目,请在迁移之前检查您的依赖项以获得空安全支持。