Created
May 28, 2024 09:52
-
-
Save mohanmanu484/fbd7fec2078e4d01b94be1172afb5da0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun NavGraphBuilder.composable( | |
routeProvider: RouteProvider, | |
content: @Composable AnimatedContentScope.(NavBackStackEntry) -> Unit | |
) { | |
composable( | |
route = routeProvider.route, | |
arguments = routeProvider.arguments, | |
deepLinks = routeProvider.deeplink, | |
content = content | |
) | |
} | |
fun NavHostController.navigate(navigation: Navigation) { | |
navigate(navigation.getRoute()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment