Skip to content

Instantly share code, notes, and snippets.

@Simba-97
Created March 4, 2023 12:06
Show Gist options
  • Save Simba-97/3a9ccedc56a3a6e95bce828998b32129 to your computer and use it in GitHub Desktop.
Save Simba-97/3a9ccedc56a3a6e95bce828998b32129 to your computer and use it in GitHub Desktop.
sealed class BottomBarScreen(
val title: String,
val icon: ImageVector,
val description: String,
val page: Int
) {
object Home : BottomBarScreen(
title = "Home",
icon = Icons.Default.Home,
description = "Home description",
page = 0
)
object Profile : BottomBarScreen(
title = "Profile",
icon = Icons.Default.Person,
description = "Profile description",
page = 1
)
object Settings : BottomBarScreen(
title = "Settings",
icon = Icons.Default.Settings,
description = "Settings description",
page = 2
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment