Pascal Gerrist
09/28/2022, 9:55 AMCiaran Sloan
09/28/2022, 10:34 AMScaffold
API for that. The content
lambda receives a PaddingValues
which you can use to retrieve the padding of both top and bottom bars which are provided to the Scaffold
Ciaran Sloan
09/28/2022, 10:35 AMScaffold(
bottomBar = { MyBottomBar() }
) { paddingValues ->
val bottomPadding = paddingValues.calculateBottomPadding()
MyScreen(
modifier = Modifier.padding(
bottom = bottomPadding
)
)
}
Pascal Gerrist
09/28/2022, 11:41 AMczuckie
09/28/2022, 1:11 PMczuckie
09/28/2022, 1:11 PMPascal Gerrist
09/28/2022, 2:52 PMZach Klippenstein (he/him) [MOD]
09/29/2022, 2:03 PM