drawLine(
brush = SolidColor(Color.Red),
cap = StrokeCap.Round,
strokeWidth = 8.dp.toPx(),
start = middle,
end = Offset(midX, 16.dp.toPx())
)
Can anyone help me with this, when we draw a line using the above code,
end
mean we ending that line at some position,
But with
Offset(X,Y)
Y having
16.dp.toPx()
what does this mean?
I am increasing Y offset like
100.dp.toPx()
, line is becoming short in length Why?