I'm trying to have a Spacer between two columns, so I've added Arrangement.SpaceBetween
, but nothing seems to be happening?
I want the first Column to be on the top, and the second Column to be pushed to the very bottom.
I'm not sure what to try, this is the code:
BoxWithConstraints {
Box(
modifier = Modifier
.fillMaxSize()
.verticalScroll(rememberScrollState())
) {
Column(
verticalArrangement = Arrangement.SpaceBetween
) {
Column(
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Top,
modifier = Modifier.fillMaxSize().pointerInput(Unit) {
detectTapGestures(onTap = {
focusManager.clearFocus()
})
}
) {
...
}
Column(
horizontalAlignment = Alignment.CenterHorizontally,
verticalArrangement = Arrangement.Bottom
) {
...
}
}
}
}
I've also tried adding a "Spacer()" in the middle, and making the verticalArrangement = Arrangement.Top
, but still not working.