-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Add a minTileHeight
to ListTile widget so its height can be customized to less than the default height.
#145244
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
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.
Are there any issues that this PR is trying to fix? I'm just thinking whether we can make a smaller height by changing visualDensity
and isDense
. Also if we need to add this property, should we also add visual density adjustment to minTileHeight
and add this property to ListTileThemeData
?
Added
I tried isDense and the tile height is 48, i want to implement a tile with height to 32 for my use case.
I think if you set the minHeight explicitly, it makes sense to override the visual density.
added. |
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 looks great! Just left a couple of small comments then we are good to go!
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 with some nits.
Co-authored-by: Qun Cheng <[email protected]>
Co-authored-by: Qun Cheng <[email protected]>
… customized to less than the default height. (flutter/flutter#145244)
flutter/flutter@d31a85b...b96c13d 2024-03-20 [email protected] Roll Flutter Engine from f42fc937028c to 883adfe2ef61 (1 revision) (flutter/flutter#145459) 2024-03-20 [email protected] Roll Flutter Engine from 32ae508316a6 to f42fc937028c (1 revision) (flutter/flutter#145456) 2024-03-20 [email protected] Roll Flutter Engine from 1e89d04c6b52 to 32ae508316a6 (2 revisions) (flutter/flutter#145449) 2024-03-20 [email protected] Roll Flutter Engine from e96b2b0047f7 to 1e89d04c6b52 (1 revision) (flutter/flutter#145446) 2024-03-20 [email protected] Roll Flutter Engine from 24b84203f6cc to e96b2b0047f7 (1 revision) (flutter/flutter#145444) 2024-03-20 [email protected] Roll Flutter Engine from 3f67bc531eef to 24b84203f6cc (1 revision) (flutter/flutter#145441) 2024-03-20 [email protected] Roll Flutter Engine from 00bfdb580b1b to 3f67bc531eef (1 revision) (flutter/flutter#145438) 2024-03-20 [email protected] Roll Flutter Engine from dce639a4c453 to 00bfdb580b1b (1 revision) (flutter/flutter#145435) 2024-03-19 [email protected] Roll Flutter Engine from bd3a9241c2c5 to dce639a4c453 (3 revisions) (flutter/flutter#145429) 2024-03-19 [email protected] Roll Flutter Engine from bacb027aa824 to bd3a9241c2c5 (1 revision) (flutter/flutter#145427) 2024-03-19 [email protected] Fix remote DDS in proxied devices. (flutter/flutter#145346) 2024-03-19 [email protected] Roll Flutter Engine from 7095e6a4a643 to bacb027aa824 (2 revisions) (flutter/flutter#145424) 2024-03-19 [email protected] Roll Flutter Engine from 59138d5f8e88 to 7095e6a4a643 (1 revision) (flutter/flutter#145409) 2024-03-19 [email protected] Add a `minTileHeight` to ListTile widget so its height can be customized to less than the default height. (flutter/flutter#145244) 2024-03-19 [email protected] Widget state properties (flutter/flutter#142151) 2024-03-19 [email protected] chore: fix some comments (flutter/flutter#145397) 2024-03-19 [email protected] Roll Flutter Engine from 7ea6b003ffeb to 59138d5f8e88 (1 revision) (flutter/flutter#145404) 2024-03-19 [email protected] Roll Packages from a757073 to a2f4ce0 (3 revisions) (flutter/flutter#145399) 2024-03-19 [email protected] Roll Flutter Engine from d8fbcfbd799c to 7ea6b003ffeb (2 revisions) (flutter/flutter#145398) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
… customized to less than the default height. (flutter/flutter#145244)
fixes: #145369
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.