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

ms

07/19/2021, 6:21 AM
Is there any manager or LocalProvider to control ModalBottomSheet? I have a
HorizontalPager
which has 3 pages, if I use a ModalBottomSheet in 3rd page & show it, I can still scroll to other pages even though the BottomSheet is visible, which is not the behaviour when using layouts
a

alorma

07/19/2021, 7:05 AM
Maybe you need to use BottomSheetScaffold on page 3. Modal bottom sheets are similar to AlertDialogs, they are "above" any other content and need to be dismissed to interact with it
m

ms

07/19/2021, 7:59 AM
@alorma that is why I'm using ModalBottomSheet. I want my content to be on top of everything
a

alorma

07/19/2021, 8:00 AM
So, it will need to be dismissed bsfore interact with pager
m

ms

07/19/2021, 8:18 AM
Yeah
@alorma but when scrolling to different page, the BottomSheet also goes with it, as a part of that page
4 Views