Peter Mandeljc
java.lang.IllegalArgumentException: navigation destination files is not a direct child of this NavGraph
NavHost( navController = controller, startDestination = "files" ) { composable( route = "files?import_file={import_file}", arguments = listOf(navArgument("import_file") { defaultValue = false }) ) { backStack -> FilesScreen( openImportDrawer = backStack.arguments?.getBoolean("import_file") ?: false, ) } }
Ian Lake
startDestination
route
startDestination = "files?import_file={import_file}"
startDestination = "files?import_file=true"
defaultValue
A modern programming language that makes developers happier.