martinsumera
02/10/2022, 3:22 PMCasey Brooks
02/10/2022, 3:26 PMColumn(
modifier = Modifier
.fillMaxSize()
.verticalScroll(rememberScrollState()),
) {
TopContent()
Spacer(Modifier.weight(1f))
BottomContent()
}
TopContent
is shorter than the Column
, then Spacer
will expand and push BottomContent()
to the bottom of the container. If it's long, then Spacer
will basically be 0dp tall, so BottomContent
will be placed right after TopContent
and the whole thing will scroll