show dbs
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
@OptIn(ExperimentalPagerApi::class) | |
@Composable | |
fun MainScreen() { | |
val screens = listOf( | |
BottomBarScreen.Home, | |
BottomBarScreen.Profile, | |
BottomBarScreen.Settings | |
) | |
val pagerState = PagerState(pageCount = screens.size) |
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 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", |
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
@Composable | |
fun HomeScreen() { | |
Box( | |
modifier = Modifier | |
.fillMaxSize() | |
.background(Color.Magenta), | |
contentAlignment = Alignment.Center | |
) { | |
Text( | |
text = "HOME SCREEN", |