Skip to content

ThemeData config - what is it for? #249

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

You must be logged in to vote

Hi Roman,

Thanks for your question. I'm maybe not 100% sure I fully understand the question, but I will try to answer anyway, and hope that some of my explanations provide the insights you are looking for.

The FlexThemeData.light() and FlexThemeData.dark() are advanced, well at least very involved, ThemeData object factories.

What they do is based on any given config, spit out a ThemeData.raw object, which is the actual constructor of the ThemeData data class object. Their input are also put through Flutter's ThemeData() factory constructor to do so.

Flutter's ThemeData() is not a direct object constructor, it very much like FlexThemeData.light/dark() is also a factory constructor, that d…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@romanr
Comment options

@rydmike
Comment options

@rydmike
Comment options

@rydmike
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. Themes Playground package Report concerns the FlexColorScheme core package V8 This issue concerns version 8 and will be addressed in it released
2 participants