-
-
Save raamcosta/f868daae11f99a1072ea595232a272ac to your computer and use it in GitHub Desktop.
First approach: ScreenSpec
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
sealed interface ScreenSpec { | |
companion object { | |
val allScreens = listOf<ScreenSpec>( | |
LoginScreenSpec, | |
SearchScreenSpec, | |
MainFeedScreenSpec, | |
ProfileScreenSpec | |
) | |
} | |
val route: String | |
val arguments: List<NamedNavArgument> get() = emptyList() | |
val deepLinks: List<NavDeepLink> get() = emptyList() | |
@Composable | |
fun Content( | |
navController: NavController, | |
navBackStackEntry: NavBackStackEntry | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment