Status Update
Comments
ry...@google.com <ry...@google.com> #2
Could you please provide a minimal reproduction sample and attach it to this bug? Without a minimal reproduction sample, it can be very hard for us to reproduce the bug you are seeing. With a sample, it is much easier for us to verify there is a bug, and to understand the exact conditions under which it occurs.
A minimal reproduction sample is a complete Android project that only has the code necessary to demonstrate the bug. Please be sure not to include any third party libraries or extraneous code that makes it harder for us to understand the exact parameters that lead the misbehavior.
Please create a .zip file or other compressed archive of the project and attach it to this bug.
[Deleted User] <[Deleted User]> #3
Notice that sheetGesturesEnabled = false on the BottomSheetScaffold.
Both LazyColumn and a Column with the .verticalScroll() Modifier is breaking expected behaviour.
so...@google.com <so...@google.com>
re...@gmail.com <re...@gmail.com> #4
For those who are still facing the issue consider using this as a workaround patch. Place it outside BottomSheetScaffold()
val state = snapshotFlow { bottomSheetScaffoldState }.collectAsState(initial = bottomSheetScaffoldState)
Text(text = "${state.value.bottomSheetState.isCollapsed}")
[Deleted User] <[Deleted User]> #5
[Deleted User] <[Deleted User]> #6
jo...@google.com <jo...@google.com> #7
Thanks for following up. We have identified the cause and will implement a fix shortly.
Description
But I noticed that adding either a LazyColumn/Column and scroll would still close the sheet, so instead of working like a nestedScroll and just scroll the content, once I reach the top of the scroll and continue scrolling the sheet starts consuming the scroll and starts to collapse.
Fling works as intended, that just scrolls content. But a "drag"-scroll is passed down and dismisses the sheet.