Skip to content

Instantly share code, notes, and snippets.

@raamcosta
Created Sep 28, 2021
Embed
What would you like to do?
First approach: ScreenSpec
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