-
-
Save oas004/fa0f743d4578271ffbf46551f61c503a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Canvas( | |
modifier = Modifier | |
.fillMaxSize() | |
.progressSemantics(progress) | |
) { | |
calculatedSegments.forEach { segmentGroups -> | |
drawPath( | |
path = Path().apply { | |
segmentGroups.calculatedSegments.forEach { | |
it.drawIncomplete(this, progress) | |
} | |
}, | |
color = segmentGroups.trackColor, | |
style = stroke | |
) | |
drawPath( | |
path = Path().apply { | |
segmentGroups.calculatedSegments.forEach { | |
it.drawCompleted(this, progress) | |
} | |
}, | |
color = segmentGroups.indicatorColor, | |
style = stroke | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment