When I use Scaffold, It draws over my existing composable, I want the elements to be stacked. Should...
e
When I use Scaffold, It draws over my existing composable, I want the elements to be stacked. Should I just use a column or can I scaffold in a non bad way?
a
Can you provide code snippet?
but my guess is you are probably misusing the padding values provided in content lambda
e
I dont specify any at all actually so that may be correct
Copy code
Scaffold(
                   topBar = {},
                   content = { CurrentScreen() },
                   bottomBar = { BottomSheet() }
               )
z
Yea, the content lambda gets a PaddingValues object that you need to apply to your content somehow. A common way is to pass to the contentPadding parameter of LazyColumn, but you can also just apply a simple padding modifier if that’s all you need.