I have this error when I try to debbug my app, I used to debbug my app with no sound null safety, I update flutter and it doesnt work now, how can I resolve it?
I have this error when I try to debbug my app, I used to debbug my app with no sound null safety, I update flutter and it doesnt work now, how can I resolve it?
2
Answers
As of Dart 3.0 there is no support for no sound null safety. You can do
flutter downgrade
to go back to the last version you had. But I really suggest you try and get your code up to date to null safety since it helps a lot while coding.If you are using android studio, go configurations, and delete the arg "no-sound-null-safety".
You might need to run flutter pub upgrade –major-versions, to upgrade all packages, and after that, you might need to amend the code, to make it work with the latest dart, flutter sdk, and packages breaking changes. Some things might be deprecated, or removed at all. If you have an error on a class name, you have to see from which package it was, and go to readme or changelog sections and see the breaking changes for that package.