๐ ) Why donโt you left any possibility to change
strokeCap
for
CircularProgressIndicator
? I can change
strokeWidth
[thread], but somewhy i cannot change cap
iamthevoid
07/22/2021, 9:07 AM
Copy code
@Composable
fun CircularProgressIndicator(
modifier: Modifier = Modifier,
color: Color = MaterialTheme.colors.primary,
strokeWidth: Dp = ProgressIndicatorDefaults.StrokeWidth
) {
val stroke = with(LocalDensity.current) {
Stroke(width = strokeWidth.toPx(), cap = StrokeCap.Square)
}
iamthevoid
07/22/2021, 9:08 AM
I ask you to do somethig with signature: replace
strokeWidth
with
stroke: Stroke
param or just add
strokeCap: StrokeCap = StrokeCap.Square
argument
iamthevoid
07/22/2021, 9:13 AM
I think that same rigor is unnecessary for this component
๐ 1
p
Paul
07/22/2021, 6:11 PM
Have you implemented the one with rounded corners? It should really easy by copy-pasting the code from the CircularProgressIndicator and modifying one or two lines. I have tried doing that, but Compose throws internal compiler AssertionError ๐ Have you experienced the same?
i
iamthevoid
07/22/2021, 7:00 PM
I hope that somebody from Google will say something like "okay, open issue, I'll do that" and I'll wait till some time and avoid copipasting)