Skip to content

Instantly share code, notes, and snippets.

@AndreVero
Last active April 15, 2024 07:23
Show Gist options
  • Save AndreVero/6fa8eb093d7d63f88eec3eed36121c4a to your computer and use it in GitHub Desktop.
Save AndreVero/6fa8eb093d7d63f88eec3eed36121c4a to your computer and use it in GitHub Desktop.
Main Composable
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