Managet to get progress here. Thanks
@Rebecca Franks
this.drawBehind {
val degrees =
if (orientation == DualButtonOrientation.Horizontal) {
if (index == 0) 0f else 180f
} else {
if (index == 0) 90f else 270f
}
rotate(degrees) {
drawArc(
color = c,
startAngle = 90f,
sweepAngle = 180f,
useCenter = false,
style = Stroke(strokeWidthFirst.toPx()),
topLeft = Offset.Zero,
size = Size(size.height, size.height),
)
drawLine(
color = c,
start = Offset(size.height / 2, 0f),
end = Offset(size.width, 0f),
strokeWidth = strokeWidthFirst.toPx()
)
drawLine(
color = c,
start = Offset(size.height / 2, size.height),
end = Offset(size.width, size.height),
strokeWidth = strokeWidthFirst.toPx()
)
}
}