Package-level declarations
Types
Link copied to clipboard
class BottomSheetNavigator(sheetState: ModalBottomSheetState) : 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.
Link copied to clipboard
The state of a ModalBottomSheetLayout that the BottomSheetNavigator drives
Link copied to clipboard
annotation class ExperimentalMaterialNavigationApi
Functions
Link copied to clipboard
fun NavGraphBuilder.bottomSheet(route: String, arguments: List<NamedNavArgument> = emptyList(), deepLinks: List<NavDeepLink> = emptyList(), content: @Composable ColumnScope.(backstackEntry: NavBackStackEntry) -> Unit)
Add the content as bottom sheet content to the NavGraphBuilder
Link copied to clipboard
fun ModalBottomSheetLayout(bottomSheetNavigator: BottomSheetNavigator, modifier: Modifier = Modifier, sheetShape: Shape = MaterialTheme.shapes.large, sheetElevation: Dp = ModalBottomSheetDefaults.Elevation, sheetBackgroundColor: Color = MaterialTheme.colors.surface, sheetContentColor: Color = contentColorFor(sheetBackgroundColor), scrimColor: Color = ModalBottomSheetDefaults.scrimColor, content: @Composable () -> Unit)
Helper function to create a ModalBottomSheetLayout from a BottomSheetNavigator.
Link copied to clipboard
fun rememberBottomSheetNavigator(animationSpec: AnimationSpec<Float> = SpringSpec<Float>()): BottomSheetNavigator
Create and remember a BottomSheetNavigator