Skip to content

Correct way to set a custom TextTheme? #83

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

You must be logged in to vote

I use and recommend the first version.

When you use the 1st version you can get the optional color blended theming also on your provided custom text themes, that FCS component themes can apply if you want it. With 2nd version that would not be applied. (Or so I think, I have actually never tried the 2nd way)

A similar situation also applies to ThemeData, it is better to not mixing in the custom TextTheme into the Typography. The ThemeData factory does config on passed in textTheme too (FCS replicates it, plus some extras if opted in on them) that might break if you set it via typography property. Although I must admit, I have as mentioned never tested doing it that way.

By default when yo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@superakabo
Comment options

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