Se7eN
05/31/2021, 11:31 AMaspectRatio(1f)
but whatever height I use, the arc only fills half of it. Code in thread.Se7eN
05/31/2021, 11:31 AMCanvas(
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
05/31/2021, 2:17 PMsize = Size(this.size.width, this.size.height * 2)
.Se7eN
05/31/2021, 2:45 PM