Skip to content

When is the full textTheme available? #212

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

You must be logged in to vote

Hi @jgarciamccausland,

Thanks for your question. This is a good one, and it is a fairly common one for Flutter generally too, as it applies to it as well.

It is actually surprisingly complicated how and when the default text geometry is applied to all the TextStyles in textTheme and primaryTextTheme in ThemeData.of(context), but never to an object created by any ThemeData factory.

TLDR and short answer

As for using FlexColorScheme and when the full textTheme is available, the answer is simple.
It is the same as for any Flutter app using MaterialApp.

This means after the MaterialApp widget has been created and localization applied. The text themes in FlexColorScheme's created ThemeData wor…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rydmike
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants