Last active
November 6, 2021 21:51
-
-
Save Morfly/50abaadcebd1451bff90224821a226e7 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
import androidx.navigation.compose.composable | |
interface FeatureEntry { | |
val featureRoute: String | |
fun NavGraphBuilder.composable( | |
navController: NavHostController, | |
destinations: Destinations, | |
) { | |
composable(featureRoute) { backStackEntry -> | |
Composable(navController, destinations, backStackEntry) | |
} | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment