-
-
Save walnashgit/d2676ca55325142975516104da1ada45 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
sealed class Screens(val route: String, val title: String) { | |
sealed class HomeScreens( | |
route: String, | |
title: String, | |
val icon: ImageVector | |
) : Screens( | |
route, | |
title | |
) { | |
object Favorite : HomeScreens("favorite", "Favorite", Icons.Filled.Favorite) | |
object Notification : HomeScreens("notification", "Notification", Icons.Filled.Notifications) | |
object MyNetwork : HomeScreens("network", "MyNetwork", Icons.Filled.Person) | |
} | |
sealed class DrawerScreens( | |
route: String, | |
title: String | |
) : Screens(route, title) { | |
object Home : DrawerScreens("home", "Home") | |
object Account : DrawerScreens("account", "Account") | |
object Help : DrawerScreens("help", "Help") | |
} | |
} | |
val screensInHomeFromBottomNav = listOf( | |
Screens.HomeScreens.Favorite, | |
Screens.HomeScreens.Notification, | |
Screens.HomeScreens.MyNetwork | |
) | |
val screensFromDrawer = listOf( | |
Screens.DrawerScreens.Home, | |
Screens.DrawerScreens.Account, | |
Screens.DrawerScreens.Help, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment