Emmanuel Montoya
Emmanuel Montoya

Reputation: 61

How to avoid null safety validation?

I just upgraded my Dart and Flutter Version and my project is a mess. Even I tried to downgrade and also return to my "stable" and "master" channel instead of the "beta" one.

Is there a way to skip all these validation at least for a while? I cannot even run my project :P

Thanks in Advance

Dart Analysis Example

Upvotes: 0

Views: 654

Answers (2)

user311086
user311086

Reputation: 1088

Open the Terminal on Mac or CommandLine on Window and try this script:

flutter clean
flutter pub cache repair
flutter pub get

Rebuild the project again

If It does not work update Flutter to Channel Stable

flutter channel stable
flutter upgrade --force

Also, run flutter doctor and fix all the issues

Upvotes: 2

Kab Agouda
Kab Agouda

Reputation: 7269

https://dart.dev/null-safety/unsound-null-safety

Disable sound null safety using the --no-sound-null-safety flag to the dart or flutter command:

In Dart :

 dart --no-sound-null-safety run

with flutter

 flutter run --no-sound-null-safety

Upvotes: 0

Related Questions