Marko Gajić
02/05/2023, 5:39 PMScaffold(
topBar = {
val showAppBar = true/false
if (showAppBar) TopAppBar() //topBar shows/hides as expected based on some state
}
) { innerPadding -> //but innerPadding never gets updated based on change in topBar visibility??
//some content that consumes innerPadding
}
If this is actually supposed to work this way I might be forced to move TopBar onto specific screens?Albert Chang
02/06/2023, 2:25 AMinnerPadding
. The content of the Scaffold
will always be placed below the top bar so there is no need to use its height as padding.Marko Gajić
02/06/2023, 3:02 PM