Skip to content
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

Migrate scaffold.dart to null safety. #3666

Merged
merged 7 commits into from
Feb 11, 2022
Merged

Migrate scaffold.dart to null safety. #3666

merged 7 commits into from
Feb 11, 2022

Conversation

polina-c
Copy link
Contributor

No description provided.

@polina-c polina-c marked this pull request as ready for review February 10, 2022 03:37
packages/devtools_app/lib/src/shared/scaffold.dart Outdated Show resolved Hide resolved
packages/devtools_app/lib/src/shared/scaffold.dart Outdated Show resolved Hide resolved
packages/devtools_app/lib/src/shared/scaffold.dart Outdated Show resolved Hide resolved
packages/devtools_app/lib/src/shared/scaffold.dart Outdated Show resolved Hide resolved
Widget flexibleSpace;
Size preferredSize;
Widget? flexibleSpace;
late Size preferredSize;
Copy link
Member

Choose a reason for hiding this comment

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

preferred size will never be initialized if widget.tabs.length <= 1, so I think this should be nullable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the method will return early in this case. reformatted the code to make it clearer

packages/devtools_app/lib/src/shared/scaffold.dart Outdated Show resolved Hide resolved
@polina-c polina-c marked this pull request as draft February 11, 2022 15:59
@@ -4,6 +4,8 @@

// @dart=2.9

// ignore_for_file: avoid_redundant_argument_values
Copy link
Member

Choose a reason for hiding this comment

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

we don't want to add these ignores. If you are getting warnings locally but not on the bots, try switching your local flutter version to the version specified in flutter-version.txt

Copy link
Contributor Author

@polina-c polina-c Feb 11, 2022

Choose a reason for hiding this comment

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

My flutter version is equal to one in flutter-version.txt.
I get this warning for the files that are not migrated yet to 2.12 and that reference migrated ones. I plan to remove the annotations when I migrate the files.

@polina-c
Copy link
Contributor Author

tested

@polina-c polina-c marked this pull request as ready for review February 11, 2022 20:57
@polina-c
Copy link
Contributor Author

tested

@polina-c polina-c merged commit 5c12800 into flutter:master Feb 11, 2022
@polina-c polina-c deleted the sf branch February 11, 2022 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants