Skip to content

Conversation

@mit-mit
Copy link
Member

@mit-mit mit-mit commented Sep 5, 2022

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 run and flutter build to 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

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 5, 2022
@mit-mit
Copy link
Member Author

mit-mit commented Sep 5, 2022

Screen Shot 2022-09-05 at 18 20 01

} else {
globals.printStatus(
'Building without sound null safety',
'Building without sound null safety ⚠️',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done in 24991ef

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nit

Copy link
Contributor

@christopherfujino christopherfujino left a 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

@mit-mit mit-mit merged commit 242bb67 into flutter:master Sep 7, 2022
@mit-mit mit-mit deleted the dart3warnings branch September 7, 2022 12:59
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Sep 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Sep 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flutter tool: warn about Dart 3 only allowing sound null safety

3 participants