Skip to content

Conversation

@HansMuller
Copy link
Contributor

@HansMuller HansMuller commented May 16, 2018

Restores the ListTile layout changes that were reverted:

#17496
#17580

The original PRs introduced a RadioListTile layout problem that has been fixed:

#17620

@gspencergoog
Copy link
Contributor

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@HansMuller HansMuller changed the title Restore ListTile the layout updates Restore the ListTile layout updates May 16, 2018
@HansMuller HansMuller merged commit 60272ee into flutter:master May 16, 2018
@HansMuller HansMuller deleted the restore_list_tile_layout_updates branch May 16, 2018 19:33
}

static double _boxBaseline(RenderBox box) {
return box.getDistanceToBaseline(TextBaseline.alphabetic);
Copy link
Contributor

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);
Copy link
Contributor

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.

Copy link
Contributor

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants