Tobias Suchalla
09/11/2024, 12:00 PMBox(Modifier.fillMaxSize()) {
Column(Modifier.matchParentSize().verticalScroll(rememberScrollState())) {
repeat(5) {
Box(
Modifier
.padding(bottom = 10.dp)
.background(Color.LightGray)
.height(64.dp)
.fillMaxWidth()
)
}
Spacer(Modifier.weight(1f)) // Fills remaining space inside the Box
Button(onClick = {}) {
Text("Save changes")
}
}
}
Do you need the nested columns? It works beautifully when using an outer Box
and matchParentSize
on the scrollable, inner column.Tobias Suchalla
09/11/2024, 12:04 PM