FlexibleBottomSheet
FlexibleBottomSheet copied to clipboard
Bottom Sheet visibility bug when dismissing
Please complete the following information:
- Library Version [e.g. v1.0.0] : latest commit 1c0e68f041df83fad2a2a957ebb00f0d90ae6762
- Affected Device(s) [e.g. Samsung Galaxy s10 with Android 9.0] OppoCPH1803 , Samsung A510F, Iphone Describe the Bug:
Add a clear description about the problem. When dismissing the sheet using a drag gesture, the bottom sheet disappears for a split second then just before completely hiding it reappears again and hides fully. Also, in this state of the sheet "disappearing" if I drag the sheet up instead of down it reappears again. Expected Behavior:
A clear description of what you expected to happen.
The sheet should always be visible on screen as long as I'm dragging it and it should only fully disappear when I fully drag it downwards.
+1
Hey guys, would you provide a video for this behavior? Thank you!
This happens when you swipe to dismiss (while still holding your finger down) for me at least.
+1
This exactly happens when you try to swipe to dismiss from anywhere else than DragHandle
Hey everyone, thanks for checking out this issue. I just confirmed that it occurs when using LazyColumn or any scrollable component inside the flexible bottom sheet. Fixing this bug is a high priority for me.
Hey guys, 0.1.4 has been released, and I hope this new release resolves this issue.
Hey there, this unfortunately didn't solve the issue for me. On some scrolls it is fixed, but it still happens about 80% of the time =(
Hey @Kev1000000, do you have any screenshots? and I'm wondering if it happens on dragging or snapping (flinging) behavior?
Screen_recording_20240805_002126.webm
Note, I am holding during this bottom sheet drag. It is disappearing while dragging down. As I drag up, it returns.
Same here, issue still persists with 0.1.4 . Im using a Column with a verticalScroll() modifier in FlexibleBottomSheet.
Same here, issue still persists with 0.1.4 . Im using a Column wit
I also have a problem that has not been solved.
@sevbanBayir @skydoves I found a solution, although it looks crutchy.
var scrollEnabled by remember { mutableStateOf(false) }
scrollEnabled = when (it) {
FlexibleSheetValue.Hidden -> {
false
}
FlexibleSheetValue.FullyExpanded -> {
true
}
FlexibleSheetValue.IntermediatelyExpanded -> {
true
}
FlexibleSheetValue.SlightlyExpanded -> {
false
}
}
Column(modifier= Modifier.verticalScroll(rememberScrollState(), enabled = scrollEnabled))
I've noticed that it happens only for non-modal sheets like rememberFlexibleBottomSheetState(isModal = false)
UPD: nope, it happens for modal sheets as well. But when the sheet is modal, there is no padding glitch, only disappearing happens.
Hi everyone, the new release 0.1.5 has been released, and it fixes for the modal case.