Mofe Ejegi
01/05/2025, 6:46 PMModalBottomSheetState
directly when using bottomSheet in the Navigation component.
But is there any particular reason why the skipHalfExpanded
param isn't present in rememberBottomSheetNavigator()
It's pretty easy to get around this by just making yours using the same code:
@Composable
public fun rememberBottomSheetNavigator(
animationSpec: AnimationSpec<Float> = SpringSpec()
): BottomSheetNavigator {
val sheetState = rememberModalBottomSheetState(
ModalBottomSheetValue.Hidden,
animationSpec = animationSpec
)
return remember(sheetState) { BottomSheetNavigator(sheetState) }
}
But can't we just get an overload or default param to let us modify skipHalfExpanded
for the rememberBottomSheetNavigator()
function too?