jordond
07/20/2023, 8:35 PMStylianos Gakis
07/20/2023, 8:50 PMjordond
07/20/2023, 8:56 PMBottomSheetDialogFragment() had a isCancelable property you could set. I’m basically looking for the equivalent.Stylianos Gakis
07/20/2023, 8:58 PMjordond
07/20/2023, 8:59 PMBottomSheetNavigator uses a ModalBottomSheetLayout(). I guess I’ll have to look for an alternative, thanks 👍Stylianos Gakis
07/20/2023, 9:07 PMAbhimanyu
07/21/2023, 11:13 AMconfirmValueChange to specify logic on when to hide the bottom sheet.
@Composable
@ExperimentalMaterial3Api
fun rememberModalBottomSheetState(
skipPartiallyExpanded: Boolean = false,
confirmValueChange: (SheetValue) -> Boolean = { true },
) = rememberSheetState(skipPartiallyExpanded, confirmValueChange, Hidden)