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

georgiy.shur

11/23/2021, 3:42 PM
Is it possible to make the
Scaffold
wrap content? I’m trying to put my
Scaffold
into the bottom sheet, but it always makes it fill the whole screen even if the content is smaller.
c

Chris Sinco [G]

11/23/2021, 6:13 PM
I think a Scaffold is meant to represent an entire screen. Why are you putting it in a BottomSheet?
g

georgiy.shur

11/23/2021, 7:01 PM
I have a reusable component with bottom sheet integration based on scaffold. My goal is to show the bottom sheet in the context of another bottom sheet. Another solution requires a lot of refactoring, so I’m trying to find a way to make the current solution work.
But thanks, I think you’re right, I’ll take another approach
c

Chris Sinco [G]

11/24/2021, 3:24 AM
Interesting - is this based off the design spec (bottom sheet within another bottom sheet)?
7 Views