Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class ListWidget : GlanceAppWidget() {
private val items = listOf("an item", "another item", /* more items */)
@Composable
override fun Content() {
LazyColumn(
modifier = GlanceModifier.padding(8.dp)
) {
items(items) { item ->
Text(
text = item,
modifier = GlanceModifier
.padding(vertical = 8.dp)
.clickable(
onClick = // some action
)
)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment