[英]Cannot run with sound null safety, because the following dependencies don't support null safety:
Im getting below error in my code.我的代码出现以下错误。 just add flutter_svg: ^1.0.3<\/strong> in pubspec.yamal.只需在 pubspec.yamal 中添加flutter_svg: ^1.0.3<\/strong> 。 how to resolve this error.如何解决此错误。 appriciate your help on this. appriciate 对此的帮助。
Error: Cannot run with sound null safety, because the following dependencies don't support null safety:错误:无法以可靠的 null 安全性运行,因为以下依赖项不支持 null 安全性:
https:\/\/dart.dev\/go\/unsound-null-safety<\/a> https:\/\/dart.dev\/go\/unsound-null-safety<\/a>
"Try below code hope its help to you试试下面的代码希望对你有帮助
add below line to your main.dart<\/code> file at the top
将以下行添加到您的
main.dart<\/code>文件顶部
// @dart=2.9
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.