Reflow - Jetpack Compose
In Jetpack Compose, all elements should be placed in a scrollable layout, such as a LazyList
or by adding verticalScroll
modifier to container Composables (e.g Column
or Box
). Never use fixed values for any heights or widths.
// Using LazyColumn
LazyColumn {
item {
Text(text = "Content should scroll!")
}
}
// Using vericalScroll modifier
Column(modifier = Modifier.verticalScroll(rememberScrollState())) {
Text(text = "Content should scroll!")
}