Skip to content

Instantly share code, notes, and snippets.

@Dannyk-kago
Created February 14, 2022 00:20
Show Gist options
  • Save Dannyk-kago/f738ff9d32424d8a6d215de352e99302 to your computer and use it in GitHub Desktop.
Save Dannyk-kago/f738ff9d32424d8a6d215de352e99302 to your computer and use it in GitHub Desktop.
sealed class BottomBarScreen (
var route:String,
var title:String,
var icon: Int
) {
object Home : BottomBarScreen(
route = "home",
title = "Home",
icon = R.drawable.ic_home
)
object Search : BottomBarScreen(
route = "search",
title = "Search",
icon = R.drawable.ic_search
)
object Post : BottomBarScreen(
route = "post",
title = "Post",
icon = R.drawable.ic_baseline_add_box
)
object Favorite : BottomBarScreen(
route = "favorite",
title = "Favorite",
icon = R.drawable.ic_favorite
)
object Profile : BottomBarScreen(
route = "profile",
title = "Profile",
icon = R.drawable.ic_person
)
}
@Dannyk-kago
Copy link
Author

initial code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment