
Enhances Jetpack Navigation Compose with Material3 support, integrating composable bottom sheet destinations. Offers seamless bottom sheet navigation through `ModalBottomSheetNavigator` and `ModalBottomSheetLayout`.
A library which provides Compose Material3 support for Jetpack Navigation Compose. This features composable bottom sheet destinations.
ModalBottomSheetNavigator and add it to the NavController:@Composable
fun MyApp() {
val bottomSheetNavigator = rememberModalBottomSheetNavigator()
val navController = rememberNavController(bottomSheetNavigator)
}NavHost in the ModalBottomSheetLayout composable that accepts a ModalBottomSheetNavigator.@Composable
fun MyApp() {
val bottomSheetNavigator = rememberModalBottomSheetNavigator()
val navController = rememberNavController(bottomSheetNavigator)
ModalBottomSheetLayout(bottomSheetNavigator) {
NavHost(navController, "home") {
// We'll define our graph here in a bit!
}
}
}@Composable
fun MyApp() {
val bottomSheetNavigator = rememberModalBottomSheetNavigator()
val navController = rememberNavController(bottomSheetNavigator)
ModalBottomSheetLayout(bottomSheetNavigator) {
NavHost(navController, "home") {
composable(route = "home") {
...
}
bottomSheet(route = "sheet") {
Text("This is a cool bottom sheet!")
}
}
}
}repositories {
mavenCentral()
}
dependencies {
implementation("com.eygraber:compose-material3-navigation:0.0.8")
}
Snapshots can be found here.
A library which provides Compose Material3 support for Jetpack Navigation Compose. This features composable bottom sheet destinations.
ModalBottomSheetNavigator and add it to the NavController:@Composable
fun MyApp() {
val bottomSheetNavigator = rememberModalBottomSheetNavigator()
val navController = rememberNavController(bottomSheetNavigator)
}NavHost in the ModalBottomSheetLayout composable that accepts a ModalBottomSheetNavigator.@Composable
fun MyApp() {
val bottomSheetNavigator = rememberModalBottomSheetNavigator()
val navController = rememberNavController(bottomSheetNavigator)
ModalBottomSheetLayout(bottomSheetNavigator) {
NavHost(navController, "home") {
// We'll define our graph here in a bit!
}
}
}@Composable
fun MyApp() {
val bottomSheetNavigator = rememberModalBottomSheetNavigator()
val navController = rememberNavController(bottomSheetNavigator)
ModalBottomSheetLayout(bottomSheetNavigator) {
NavHost(navController, "home") {
composable(route = "home") {
...
}
bottomSheet(route = "sheet") {
Text("This is a cool bottom sheet!")
}
}
}
}repositories {
mavenCentral()
}
dependencies {
implementation("com.eygraber:compose-material3-navigation:0.0.8")
}
Snapshots can be found here.