Jrichards1408
12/12/2022, 8:52 AMScaffold(
topBar = {
// top bar text and nav button and should be transparant background
},
bottomBar = {
Column {
Column(
Modifier
.navigationBarsPadding()
.imePadding()
.padding(horizontal = myTheme.paddings.horizontalContentPadding)
.fillMaxWidth()
) {
bottomContent?.invoke()
}
}
},
content = { contentPadding ->
Box(modifier = Modifier.padding(contentPaddingOverride ?: contentPadding)) {
content()
}
}
)
I want the contents of the topbar to sit over a full screen height of the content but instead,it shifts the content down and the topbar takes its own area by default as seen on many android apps.dorche
12/12/2022, 9:49 AMJrichards1408
12/12/2022, 10:09 AMJrichards1408
12/12/2022, 10:10 AMJrichards1408
12/12/2022, 10:10 AMAlex Vanyo
12/12/2022, 5:04 PMmaterial3
or material
Scaffold
? The behavior in this area differs slightly between them.
For a material3
Scaffold
, the height of the top app bar will be passed inside the contentPadding
, which you can then use however you’d like inside the content.Jrichards1408
12/13/2022, 9:34 AMJrichards1408
12/13/2022, 9:35 AM