There is something I don’t understand about Theming.
I have defined my own typography:
val typography = Typography(
body1 = TextStyle(
fontWeight = FontWeight.Normal,
fontSize = 20.sp,
letterSpacing = 0.5.sp
)
)
If I change the fontsize on my own typography, it also seems to affect Texts where I specify a
MaterialTheme
style
Text(text = row.nome, style = MaterialTheme.typography.body1, fontWeight = FontWeight.Bold)
I was expecting it would only affect Text where my own typography is specified:
Text(text = row.nome, style = typography.body1, fontWeight = FontWeight.Bold)
How is it supposed to work?