Skip to content

Instantly share code, notes, and snippets.

@linean
Created May 10, 2022 19:54
Show Gist options
  • Save linean/9a66dc98c6c0877b16c3ba8b7145ce9b to your computer and use it in GitHub Desktop.
Save linean/9a66dc98c6c0877b16c3ba8b7145ce9b to your computer and use it in GitHub Desktop.
items.forEach { item ->
val offset = itemsOffsets.getValue(itemKey(item)).value
Box(
modifier = Modifier
.size(itemSize)
.offset(offset.x, offset.y)
) {
itemContent(item)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment