Jason Ankers
03/08/2021, 7:44 AMLazyColumn
inside a bottom sheet from dismissing the sheet? is it possible to disable the sheet swipe gestures within a certain boundary? (in my case I want to disable them over the LazyColumn
)Mayank Saini
09/21/2021, 6:02 AMMayank Saini
09/21/2021, 6:09 AMval bottomSheetScaffoldState =
rememberModalBottomSheetState(ModalBottomSheetValue.Hidden, confirmStateChange = {
it != ModalBottomSheetValue.Hidden
})
This way the sheet won’t be dismissed but it still changes position which I don’t want,Jason Ankers
09/21/2021, 6:10 AMModifier.nestedScroll(remember {
object : NestedScrollConnection {
override fun onPostScroll(
consumed: Offset,
available: Offset,
source: NestedScrollSource
) = available
override suspend fun onPostFling(
consumed: Velocity,
available: Velocity,
) = available
}
})
Mayank Saini
09/21/2021, 7:10 AM