I'm trying to use `BottomSheetScaffold` to impleme...
# compose
c
I'm trying to use
BottomSheetScaffold
to implement bottom sheet behavior. In old
BottomSheetBehavior
we have some middle states like
STATE_DRAGGING
or
STATE_HALF_EXPANDED
, however now the
BottomSheetValue
have only
Collapsed
and
Expanded
. Is there any plan to implement additional states or other ways to deal with the middle states?
m
Hello.
BottomSheetScaffoldState::BottomSheetState
provide all kind of such information. For example, you can do
bottomSheetState.progress
to get
SwipeProgress
to know where're you going to and from and whether anything is actually happening right now. That being said, we will probably add
InteractionState
to BottomSheetScaffold at some point so you would be able to query for dragging in progress even easier
🙏 1
c
It's good to know there will be additional state for implementation. I don't know I can access
Swipeable
before. I'll try it.
m
Let me know how it went 🙂
👍 1
m
Hello @Cash Hsiao @matvei I have a similar requirement where I need
STATE_HALF_EXPANDED
when using
BottomSheetScaffold
is there a way I can do this? I see that this is possible with
ModalBottomSheet
but my UI requires me to use
BottomSheetScaffold
. Thanks.