feat: implement navigation for growth recipe feature
This commit is contained in:
parent
38bc640806
commit
fafc3c5854
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.syaroful.agrilinkvocpro.growth_recipe_feature.naviagtion
|
||||||
|
|
||||||
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.navigation.compose.NavHost
|
||||||
|
import androidx.navigation.compose.composable
|
||||||
|
import androidx.navigation.compose.rememberNavController
|
||||||
|
import com.syaroful.agrilinkvocpro.growth_recipe_feature.presentation.recipe.GrowthRecipeScreen
|
||||||
|
import com.syaroful.agrilinkvocpro.growth_recipe_feature.presentation.recomendation.ClusterScreen
|
||||||
|
|
||||||
|
@Composable
|
||||||
|
fun SetupNavigation() {
|
||||||
|
val navController = rememberNavController()
|
||||||
|
NavHost(navController, startDestination = "growth_recipe") {
|
||||||
|
composable("growth_recipe") {
|
||||||
|
GrowthRecipeScreen(navController = navController)
|
||||||
|
}
|
||||||
|
|
||||||
|
composable("cluster") {
|
||||||
|
ClusterScreen(navController = navController)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user