kyleg
02/18/2020, 8:54 PM…, style=+textThemeStyle but cannot for the life of me figure out what textThemeStyle is. There’s a Github project I found that suggests it’s in androidx.ui.material but I don’t see it there for me. Probably something that was removed/deprecated-and-removed. What is it replaced by?
I have one of my Composable functions wrapping a Scaffold with CustomTheme, and inside there I want to style a Text with a Typography defined inside the CustomTheme.kyleg
02/18/2020, 8:54 PMLouis Pullen-Freilich [G]
02/18/2020, 8:55 PMMaterialTheme.typography().h1 , replacing h1 with the style you wantLouis Pullen-Freilich [G]
02/18/2020, 8:56 PMMaterialTheme object which is the entry point for accessing the themekyleg
02/18/2020, 8:57 PMRyan Mentley
02/18/2020, 9:09 PM+ on newer Compose versionskyleg
02/18/2020, 10:54 PMtextThemeStyle appears to have been removed without notes as to how to replace, but the unaryPlus operating on various things in Compose remains in the code but with a Deprecate annotation and a note about how it’s not necessary anymore.