Daniele B
09/20/2023, 7:25 PMScaffold
and I upgraded to Material3.
In the Scaffold I specify: topBar
, content
, bottomBar
.
The topBar
is a TopAppBar
.
The content
is a scrolling LazyColumn
.
The top part of the content is now hidden below the topBar, while before it was starting below the topBar.
Is there a specific parameter I need to set in order to see the whole content?chr
09/20/2023, 7:31 PMcontent
lambda actually takes in one argument that the Scaffold will pass in for padding that you would need to respect in order to not be obscured by the `topBar`:
Scaffold(
topBar = { ... },
content = { contentPadding ->
LazyColumn(Modifier.padding(contentPadding)) {
// ...
}
},
)
Daniele B
09/20/2023, 7:43 PMmkrussel
09/20/2023, 7:48 PMStylianos Gakis
09/20/2023, 7:53 PMdewildte
09/20/2023, 8:06 PMmkrussel
09/20/2023, 8:11 PMDaniele B
09/21/2023, 12:17 AMZoltan Demant
09/21/2023, 4:22 AM