Created
October 2, 2022 14:03
-
-
Save Skyyo/fbb139300719aebed75450cab9449a8c to your computer and use it in GitHub Desktop.
perf_snippet_9
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
@Composable | |
fun UnstableListScreen() { | |
val items = remember { (0..100).map { it } } | |
Box { | |
WrappedLazyColumn(items) | |
} | |
} | |
@Composable | |
private fun WrappedLazyColumn(items: List<Int>) { | |
LazyColumn { | |
items(items = items, key = { item -> item }) { item -> | |
Text(text = "item $item") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment