Question to compose developers (similar question l...
# compose
i
Question to compose developers (similar question like question about paddings in
TextField
🙂 ) Why don’t you left any possibility to change
strokeCap
for
CircularProgressIndicator
? I can change
strokeWidth
[thread], but somewhy i cannot change cap
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)
    }
I ask you to do somethig with signature: replace
strokeWidth
with
stroke: Stroke
param or just add
strokeCap: StrokeCap = StrokeCap.Square
argument
I think that same rigor is unnecessary for this component
👌 1
p
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
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)