Last active
April 15, 2024 07:23
-
-
Save AndreVero/6fa8eb093d7d63f88eec3eed36121c4a to your computer and use it in GitHub Desktop.
Main Composable
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 itemSize = 50.dp | |
val size = 1100.dp | |
Box( | |
modifier = Modifier | |
.fillMaxSize() | |
.background(BackgroundColor) | |
) { | |
TimeCircleComponent( | |
items = getTimes(), | |
itemSize = itemSize, | |
onItemPicked = {}, | |
size = size, | |
content = { item -> | |
Box( | |
modifier = Modifier | |
.size(itemSize) | |
.background(CircleBackgroundColor) | |
.clip(CircleShape) | |
.border(1.dp, Color.White, CircleShape) | |
) { | |
Text( | |
text = item.time, | |
modifier = Modifier.align(Alignment.Center), | |
color = Color.White, | |
fontSize = 12.sp, | |
) | |
} | |
}, | |
modifier = Modifier | |
.size(size) | |
.offset(y = 750.dp) | |
.align(Alignment.BottomCenter) | |
.clip(CircleShape) | |
.background(CircleBackgroundColor) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment