FlexibleBottomSheet icon indicating copy to clipboard operation
FlexibleBottomSheet copied to clipboard

[NestedScroll] BottomSheet doesn't hide/dismiss when dragging/flinging via the nested scroll area

Open ndriqimh opened this issue 1 year ago • 1 comments

  • Library Version [0.1.1]
  • Affected Device(s) [Samsung Galaxy A13 with Android 13.0]

I have made the bottom sheet to just fully expand for my needed case.

flexibleSheetSize = FlexibleSheetSize(
                    fullyExpanded = fullyExpandedRatio,
                    intermediatelyExpanded = 0f,
                    slightlyExpanded = 0f,
 ),
 FlexibleSheetState(
                flexibleSheetSize = flexibleSheetSize,
                isModal = false,
                skipSlightlyExpanded = true,
                skipIntermediatelyExpanded = true,
                containSystemBars = true,
                allowNestedScroll = true,
                animateSpec = SwipeableV2Defaults.AnimationSpec,
)

When I use a scrollable composable like a LazyColumn or a vertically scrollable Column, with allowNestedScroll = true, I can drag/fling the bottom sheet down to try dismiss it but it doesn't hide it. I more exact words, let's say I'm dragging/flinging it down, when I release the finger the sheet goes right back up to fullyExpanded automatically. I don't have this problem when I don't use a scrollable component. I can't share any images/videos due to the project I'm working on.

ndriqimh avatar Dec 21 '23 22:12 ndriqimh

@skydoves any news on this? Did you had time to check it out?

ndriqimh avatar Jan 23 '24 08:01 ndriqimh

Duplicated with #30. This issue will be resolved in the next release.

skydoves avatar Aug 04 '24 06:08 skydoves