Investigate using sp units instead of dp
It's possible we should be using sp
units instead of dp
, but I'm not sure.
It's not straightforward to convert sp
to dp
, so keeping this here to not having to research this again:
object DensityUtils {
@Composable
fun TextUnit.dp() = with(LocalDensity.current) { this@dp.toDp() }
}