dimsuz
08/22/2020, 11:06 PMdp
to pixels for Offsets? It's OK but I get a feeling that's a bit verbose.
drawLine(
color,
size.bottomLeft(Offset(1.dp.toPx().value, -1.dp.toPx().value)),
size.topLeft(Offset(0f, 1.dp.toPx().value)),
Stroke(width = 2.dp.toPx().value)
)
Zach Klippenstein (he/him) [MOD]
08/23/2020, 12:02 AMdimsuz
08/23/2020, 10:43 AM1.dp.toPx()
in newer versions?Timo Drick
08/23/2020, 11:24 AMdimsuz
08/23/2020, 11:54 AMdev13
. I've just upgraded to dev17
and .value
can go now 🙂 Thanks!