nuhkoca
05/16/2022, 10:40 AMonSortingSheetStateChanged(SortSheetState.Dismissed)
to be triggered for that case but only if user presses back button or touches outside. BTW is there any better way to handle these cases?
if (sortingBottomSheetState.currentValue != ModalBottomSheetValue.Hidden) {
DisposableEffect(Unit) {
onSortingSheetStateChanged(SortSheetState.Shown)
onDispose {
onSortingSheetStateChanged(SortSheetState.Dismissed)
}
}
}
Chris Fillmore
05/19/2022, 9:19 PMBackHandler
Chris Fillmore
05/19/2022, 9:21 PM