-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Migrate ListTile TextTheme TextStyle references to Material 3
#101900
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 ListTile TextTheme TextStyle references to Material 3
#101900
Conversation
ListTile to Material 3ListTile TextTheme TextStyle references to Material 3
HansMuller
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.
I've changed the title of this PR to narrow its scope. In a separate PR we could change the defaults for the ListTile.iconColor - when ThemeData.useMaterial3 = true - to match the Material 3 spec. That means that the default would be based on the theme's color scheme, not IconTheme. We're not trying to simplify making all of the icons in an app have the same color, but we don't want the defaults to be correct for each component type, per the spec.
b9ba2c9 to
3c44cc7
Compare
3c44cc7 to
3866272
Compare
HansMuller
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
|
This caused some internal test failures (Google internal link b/229707952). Most of them seem inconsequential, but there were a few cases where the a font became noticeably smaller. I'm going to revert this until we can track down the source of those failures (maybe a conditional useMaterial3 is needed somewhere). |
|
I think this is caused by this line: Earlier today I was looking into this new issue #102121 and I realized flutter/packages/flutter/lib/src/material/text_theme.dart Lines 262 to 266 in 078deb9
|
|
After revert is completed, I can file reland PR to match the proper font, which is |
This sounds great until we're sure M3 fonts are working as expected. |
|
While relanding, I can see |
This reverts commit 9f0bcfb.
|
Was there a way to disable the default InkWell/ Splash behavior considered? |
Updates ListTile [TextTheme] text style references to the Material 3 style names.
Fixes #102075
Part of: #91605 (fixes #89853)
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.