Wouuuahhhh you can’t set `.dp` on a `TextStyle`? B...
# compose
g
Wouuuahhhh you can’t set
.dp
on a
TextStyle
? Bold of Compose to fight directly the designers of the world 😂
Copy code
Text(
    text = "Save this dough recipe!",
    style = TextStyle(fontSize = 16.dp) // doesn't compile
)
😀 2
j
looks like you have to use
.sp
g
Yes indeed, that’s the issue. I’ve had looooong debates with the designers in my company, and before that company too, about text that should be in SP. For their point of view, content has to adapt to changes of text sizes, but not navigation( (aka texts under main categories, etc).
c
CMV: Designers and front end devs should merge into 1 role 😛
😂 1
s
You can convert any dimension into sp if you really need to, however it really should be sp if it's human-displayed text :).