Skip to content

About listTileSubtitleTextStyle size error problem #274

Answered by rydmike
maxfrees asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @maxfrees, thanks for the question. It is an interesting one 😄

You will need to extract the resulting ColorScheme from your FlexColorScheme and use colors from it to define the listTileSubtitleTextStyle and its TextStyle color.

For the correct (same as default) font spacing and height, you will also need to replicate the exact default TextStyle of bodyMedium that ListTile uses for its subtitle. The default Material3 bodyMedium has a lot of other props in its TextStyle set as well, not just font size 14, more about that later.

Here is the basic idea:

abstract final class AppTheme {
  // The defined light theme.
  static ThemeData get light {
    // Make a FlexColorScheme data object, w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question This issue is a usage question and will be moved to the Discussions section.
2 participants
Converted from issue

This discussion was converted from issue #273 on January 04, 2025 20:54.