-
Notifications
You must be signed in to change notification settings - Fork 336
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
Conversation
Widget flexibleSpace; | ||
Size preferredSize; | ||
Widget? flexibleSpace; | ||
late Size preferredSize; |
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.
preferred size will never be initialized if widget.tabs.length <= 1, so I think this should be nullable
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.
the method will return early in this case. reformatted the code to make it clearer
@@ -4,6 +4,8 @@ | |||
|
|||
// @dart=2.9 | |||
|
|||
// ignore_for_file: avoid_redundant_argument_values |
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.
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
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.
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.
tested |
tested |
No description provided.