https://kotlinlang.org logo
Title
f

Florian

12/03/2021, 8:07 AM
does someone have the code for a CircularProgressInIndicator with rounded edges on the progress bar?
c

Chris Sinco [G]

12/03/2021, 8:54 AM
I think the simplest thing is to copy the code from source and just replace the stroke with
StrokeCap.Round
on line 231. The component is in the Material package which means it's built on all core UI packages of Compose.
f

Florian

12/03/2021, 10:40 AM
thank you both!
@Chris Sinco [G] This worked and was pretty easy 👍 Awesome, thank you very much
2
🙏 1
c

Chris Sinco [G]

12/03/2021, 6:39 PM
It may be interesting to add a cap shape parameter to it though since it was designed to match the Material spec exactly, but with Material3, things are becoming more round.
f

Florian

12/03/2021, 9:52 PM
yes