Se7eN
aspectRatio(1f)
Canvas( modifier = modifier .background(Color.Blue) .aspectRatio(1f) .padding(24.dp) ) { drawArc( brush = Brush.sweepGradient( 0.5f to Color.Red, 1f to Color.Green ), startAngle = 0f, sweepAngle = -180f, useCenter = false, style = Stroke(width = 100f) ) }
Albert Chang
size = Size(this.size.width, this.size.height * 2)
A modern programming language that makes developers happier.