-
-
Save oas004/cd5768b571d36620186e1f833ba8dbe9 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
val previewProgressSections = listOf( | |
ProgressIndicatorSegment( | |
weight = 3f, | |
indicatorColor = Color.Cyan | |
), | |
ProgressIndicatorSegment( | |
weight = 3f, | |
indicatorColor = Color.Magenta | |
), | |
ProgressIndicatorSegment( | |
weight = 3f, | |
indicatorColor = Color.Yellow | |
) | |
) | |
@WearSquareDevicePreview | |
@Composable | |
fun PreviewHighCornerRadius() { | |
Box( | |
modifier = Modifier | |
.fillMaxSize() | |
.background(Color.Black) | |
) { | |
SquareSegmentedProgressIndicator( | |
modifier = Modifier | |
.height(300.dp) | |
.width(300.dp), | |
progress = 0.5f, | |
trackSegments = previewProgressSections, | |
cornerRadiusDp = 50.dp | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment