Created
September 19, 2020 01:59
-
-
Save mohamedmelfiky/28c3fbc0466b17ea96e10c8981183717 to your computer and use it in GitHub Desktop.
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 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