-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Implementing switch expressions in flutter/test/
#144580
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
| Orientation.portrait => Scaffold(body: Container(), drawer: const Text('drawer')), | ||
| Orientation.landscape => Scaffold(body: Container(), appBar: AppBar()), |
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.
This was slightly nicer when the arguments to Scaffold were each on their own line, which is more Flutter-style.
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.
(here and below)
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.
Sounds good—I think I'll just revert this file since I'm not a huge fan of multi-line switch expression values.
goderbauer
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
justinmc
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 👍 Thanks again for migrating this!
This pull request is part of the effort to solve issue #136139 and make the Flutter repo more readable. After 10 successful PRs, all of
flutter/lib/src/is looking good, so it's on toflutter/test/!No in-depth refactoring here: should be a pretty straightforward merge.