Package 

Class BottomSheetNavigator


  • 
    public final class BottomSheetNavigator
    extends Navigator<BottomSheetNavigator.Destination>
                        

    Navigator that drives a ModalBottomSheetState for use of ModalBottomSheetLayouts with the navigation library. Every destination using this Navigator must set a valid Composable by setting it directly on an instantiated Destination or calling androidx.navigation.compose.material.bottomSheet.

    <b>The sheetContent will always host the latest entry of the back stack. When navigating from a BottomSheetNavigator.Destination to another BottomSheetNavigator.Destination, the content of the sheet will be replaced instead of a new bottom sheet being shown.</b>

    When the sheet is dismissed by the user, the state's NavigatorState.backStack will be popped.

    The primary constructor is not intended for public use. Please refer to rememberBottomSheetNavigator instead.