I'm implementing a gradient progress bar indicator.
I've found this useful which is drawing progress bar using drawLine like this,
drawLine(
    color = backgroundIndicatorColor,
    cap = StrokeCap.Round,
    strokeWidth = size.height,
    start = Offset(x = 0f, y = 0f),
    end = Offset(x = size.width, y = 0f)
)
Now I want to give it a custom rounded corner like below.
How can I do that?
				
                        
You can use drawRoundedRect function with any CornerRadius as