Bobby Hargett
02/28/2024, 9:27 PMBobby Hargett
02/28/2024, 9:29 PMBobby Hargett
02/28/2024, 9:29 PM@Composable
fun DualSidedProgress(
) {
Box(
modifier = Modifier.fillMaxWidth().height(80.dp)
.drawBehind
{
val radius = CornerRadius(40.dp.toPx())
drawRoundRect(Color.White, cornerRadius = radius)
drawRoundRect(
Brush.linearGradient(listOf(Color.Black, Color.Red)),
topLeft = Offset(40f, 0f),
size = this.size.copy(width = this.size.width * .95f),
cornerRadius = radius
)
}
) {
}
}
Bobby Hargett
02/28/2024, 9:34 PMKirill Grouchnikov
02/28/2024, 10:58 PMCanvas
and leave the drawing logic as it is