I'm creating dashed rectangle with 12 dp corner radius.
I'm using canvas for that. In that we can't give corner radius in dp or px.
Canvas(modifier = Modifier.fillMaxSize()) {
drawRoundRect(color = Color.Red, style = stroke, cornerRadius = CornerRadius(35f, 35f))
}
In that I put 35f because it resembles 12 dp. Is there any way to use dp or is there any way to covert dp/px to float xy values?