-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Restore the ListTile layout updates #17661
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
Restore the ListTile layout updates #17661
Conversation
| } | ||
|
|
||
| static double _boxBaseline(RenderBox box) { | ||
| return box.getDistanceToBaseline(TextBaseline.alphabetic); |
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 should not hard-code the baseline.
| double computeDistanceToActualBaseline(TextBaseline baseline) { | ||
| assert(title != null); | ||
| final BoxParentData parentData = title.parentData; | ||
| return parentData.offset.dy + title.getDistanceToBaseline(TextBaseline.alphabetic); |
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 should not hard-code the baseline.
Also, and more importantly, this should use getDistanceToActualBaseline rather than getDistanceToBaseline.
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.
i'll submit a PR to fix this

Restores the ListTile layout changes that were reverted:
#17496
#17580
The original PRs introduced a
RadioListTilelayout problem that has been fixed:#17620