So , there is this package which doesn't have null safety in any of its versions. Is there any way i can use it inside my project where i am using null safety.
Here is the error that my IDE is showing me :
So, in case your app depends on some packages which don't have null safety. You can run your app with unsound null safety. For that run this command.
flutter run --no-sound-null-safety
For dart files :
dart --no-sound-null-safety run
So , what basically this does is runs some of your code with null safety and the part that is not eligible for null safety without null safety.
Reference from this article
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With