-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Update null safety warnings in prep for Dart 3 #110998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } else { | ||
| globals.printStatus( | ||
| 'Building without sound null safety', | ||
| 'Building without sound null safety ⚠️', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to add this emoji to https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/base/logger.dart#L717-L726
So that we don't try to print it on old windows terminals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done in 24991ef
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nit
christopherfujino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with Jonah's nit

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.
In Dart 3 only sound null safety will be allowed. This PR updates the output of
flutter runandflutter buildto provide a warning about this ahead of time. The messages link to the dart.dev nulls safety page, which is being updated to state this in dart-lang/site-www#4211.List which issues are fixed by this PR. You must list at least one issue.
Contributes to dart-lang/sdk#49530, fixes #111116
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.