Stylianos Gakis
05/26/2023, 12:45 AMColumn() {
TransparentTopAppBarWithAnActionOnTheRight()
Column(Modifier.weight(1f).verticalScroll()) {
content()
}
}
But I want the inner column to be able to show below the top app bar, is there a way to achieve it? I am trying to figure out how the outer column places the children, and if there’s a way for me to basically tell it that it can place one under the other, but the inner column can render outside of the bounds it’s given, so that it will show below the TopAppBar (which is transparent in my case).
For now what I am doing is a Box() { TopAppBar(Align.TopRight); Column { content() } }
But I’d rather not do that if possible, since this way I need to manually add enough space on the column so that things by default start below that top app bar, before they can render below it.Stylianos Gakis
05/26/2023, 12:48 AMsteelahhh
05/26/2023, 5:08 AMScaffold
with topBar
can help you achieve this 🤔Timo Drick
05/26/2023, 7:26 AMLazyColumn(state = listState, contentPadding = padding.add(bottom = bottomSpace))
Here the FAB is at the bottom.
And yes you are right Scaffold would also do this for you. But you also need to use the content padding parameter there. It will be automatically calculated for the FAB.Stylianos Gakis
05/26/2023, 8:16 AM