gpaligot
03/05/2021, 8:45 PMBox
with a CircleShape
. My shadow is displayed but it isn’t the same shadow applied around all my shape. Can it be possible to avoid a bigger shadow at the bottom and to have the exact same shadow around all the box?
@Composable
fun CircleProgress(
angle: Int
) {
Box(
Modifier
.fillMaxSize()
.padding(80.dp)
.shadow(elevation = 8.dp, shape = CircleShape)
.background(color = Color.White, shape = CircleShape)
.padding(10.dp)
.drawBehind {
drawArc(
color = Color.Red,
startAngle = -90f,
sweepAngle = angle.toFloat(),
useCenter = false,
style = Stroke(width = 30f, cap = StrokeCap.Round)
)
}
)
}
Thanks in advance!romainguy
03/05/2021, 8:47 PMromainguy
03/05/2021, 8:48 PMgpaligot
03/05/2021, 8:54 PMromainguy
03/05/2021, 9:05 PMromainguy
03/05/2021, 9:05 PMromainguy
03/05/2021, 9:05 PMgpaligot
03/05/2021, 9:43 PMgpaligot
03/05/2021, 9:45 PMYusuf Ibragimov
12/20/2023, 6:30 AM