spierce7
02/01/2021, 4:36 PMMaterialTheme.typography.h1
statically when I want to set an h1, but how would I gain access to the theme that is actually set to get it’s typography, and potentially overridden styles?JulianK
02/01/2021, 4:44 PMMaterialTheme(
colors = …,
typography = …,
shapes = …
) {
// app content
}
And set your own Typography (with your custom definition of h1). Then, MaterialTheme.typography.h1 will use your definition of h1.spierce7
02/01/2021, 4:59 PM