iroyo
12/15/2021, 5:00 PMdata class CustomColors
and then a staticCompositionLocalOf
but... does it make sense to omit all of this if we use an object instead?Chris Sinco [G]
12/15/2021, 5:09 PMChris Sinco [G]
12/15/2021, 5:10 PMBryan Herbst
12/15/2021, 5:11 PMiroyo
12/15/2021, 5:41 PMiroyo
12/15/2021, 5:50 PMMaterialTheme.whatever
. With MaterialTheme you have a Typography class which defines h1, h2… and then the consumer creates an instance with the specific values for h1, h2… but in my case I do not need this flexibility because I know the only possible TextStyles my spec needs and I don’t need to make “local overrides”. This way I treat Typography as an global object and I don’t need to “provide” it with CompositionLocalProvider. I don’t know if this make senseChris Sinco [G]
12/17/2021, 8:13 PM