https://kotlinlang.org logo
#compose
Title
# compose
v

Vivek Sharma

12/03/2020, 11:02 AM
When using
scaffold
with
bottomBar
, and the
body
content , the
body
content goes below
bottomBar
, how can we avoid it? so that our content dont hide behind
bottomBar
a

allan.conda

12/03/2020, 11:03 AM
use the paddingValues that Scaffold provides in the top level content
Copy code
Scaffold { paddingValues -> Box(Modifier.padding(paddingValues) }
🙌 1
v

Vivek Sharma

12/03/2020, 11:07 AM
yeah I just noticed it in my project, thanks for answering
4 Views