Package com.google.accompanist.navigation.material

Types

BottomSheetNavigator
Link copied to clipboard
Navigator that drives a ModalBottomSheetState for use of ModalBottomSheetLayouts with the navigation library.
BottomSheetNavigatorSheetState
Link copied to clipboard
class BottomSheetNavigatorSheetState(sheetState: ModalBottomSheetState)
The state of a ModalBottomSheetLayout that the BottomSheetNavigator drives
ExperimentalMaterialNavigationApi
Link copied to clipboard
annotation class ExperimentalMaterialNavigationApi

Functions

bottomSheet
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
ModalBottomSheetLayout
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.
rememberBottomSheetNavigator
Link copied to clipboard
fun rememberBottomSheetNavigator(animationSpec: AnimationSpec<Float> = SwipeableDefaults.AnimationSpec): BottomSheetNavigator
Create and remember a BottomSheetNavigator