Hi there! I want a text to be MaterialTheme.typogr...
# compose
a
Hi there! I want a text to be MaterialTheme.typography.h4 on a tablet and MaterialTheme.typography.h5 on a phone. What is the best approach to achieve this? So far I think I could wrap a Text component in a BoxWithConstraint and check if maxWidth > 580.dp for example or have a bool dimen with true in sw600 dimens xml, but I'm wondering what other solutions are you using.
2