@Composable
fun NestedExample() {
Column(
Modifier
.fillMaxSize()
.verticalScroll(rememberScrollState())
) {
SearchResults(query = "A")
SearchResults(query = "B")
}
}
@Composable
fun SearchResults(query: String) {
val results = MutableList(100) { "$query $it" } // could come from an API in the future
LazyColumn {
items(results) {
Text(it)
}
}
}
David Albers
06/17/2021, 6:10 PM
basically: a root
Column
which scrolls and `Composable`s within it which may or may not have