Lukasz Kalnik
01/17/2025, 1:18 PMColumn with a Button at the bottom and a Text centered between the top of the screen and top of the button. I tried two nested `Column`s, the inner one with Modifier.fillMaxHeight() and Arrangement.Center, but then the Button gets pushed out of the screen:
@Preview
@Composable
private fun ColumnInColumn(modifier: Modifier = Modifier) {
Column(Modifier.fillMaxHeight()) {
Column(
modifier = Modifier.fillMaxHeight(),
verticalArrangement = Arrangement.Center,
) {
Text("Hello, World!")
}
Button(onClick = {}) {
Text("Button")
}
}
}Hendrik Pastunink
01/17/2025, 1:20 PMModifier.weight(1f) on the inner ColumnLukasz Kalnik
01/17/2025, 1:23 PM