Bobby Hargett
@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 ) } ) { } }
Kirill Grouchnikov
Canvas
A modern programming language that makes developers happier.