Created
May 10, 2022 19:54
-
-
Save linean/70925286426b287334f155c658ae5d62 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
LaunchedEffect(itemKeys) { | |
items.forEachIndexed { index, item -> | |
val newOffset = gridOffsets[index] | |
val itemOffset = itemsOffsets.getValue(itemKey(item)) | |
launch { itemOffset.animateTo(newOffset, animationSpec) } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment