Skip to content

Instantly share code, notes, and snippets.

@mohamedmelfiky
Created September 19, 2020 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohamedmelfiky/28c3fbc0466b17ea96e10c8981183717 to your computer and use it in GitHub Desktop.
Save mohamedmelfiky/28c3fbc0466b17ea96e10c8981183717 to your computer and use it in GitHub Desktop.
@Composable
fun LazyBug() {
var list by remember { mutableStateOf((0..30).toList()) }
launchInComposition {
delay(3000)
list = (0..10).toList()
}
LazyColumnFor(items = list) {
Text(modifier = Modifier.padding(16.dp).fillMaxWidth().preferredHeight(60.dp), text = "item")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment