Colton Idle
05/10/2023, 12:44 PMBox(
modifier.drawWithContent {
drawRoundRect(
Color.Black,
style = Fill,
cornerRadius = CornerRadius(4.dp)
)
})
Louis Pullen-Freilich [G]
05/10/2023, 12:49 PMBox(
modifier.drawWithContent {
drawRoundRect(
Color.Black,
style = Fill,
cornerRadius = CornerRadius(4.dp.toPx())
)
})
`drawWithContent`’s scope extends Density
, so you can convert directly inside this blockColton Idle
05/10/2023, 1:02 PM