Colton Idle
04/19/2022, 1:31 PMnitrog42
04/19/2022, 1:34 PM```val bodyContentPlaceables = subcompose(ScaffoldLayoutContent.MainContent) {
val innerPadding = PaddingValues(bottom = bottomBarHeight.toDp())
content(innerPadding)
}.fastMap { it.measure(looseConstraints.copy(maxHeight = bodyContentHeight)) }```from Scaffold.kt with 1.2.0-alpha06
Alex Vanyo
04/20/2022, 10:51 PMmaterial3
Scaffold
specifically.
https://developer.android.com/jetpack/androidx/releases/compose-material3#1.0.0-alpha10
For material3
’s Scaffold
, the top bar is now included in the inner padding. As a consequence, there will be no need for an accompanist/insets-ui
version of `material3`’s Scaffold
for the use case of a translucent top app bar where you want to display content behind the top app bar.
The behavior for material
Scaffold
is unchanged, so that behavior is still accurate.Colton Idle
04/20/2022, 11:24 PM