This file contains hidden or 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
| // You can invoke LocalSystemBarsWindowInsets.current to get the correct window insets. | |
| // You may need to pass this as a parameter to Scaffold if you use it, luckily Scaffold accepts custom WindowInsets. | |
| val LocalSystemBarsWindowInsets = compositionLocalOf { WindowInsets(0.dp, 0.dp, 0.dp, 0.dp) } | |
| // Wrap your main App function call with this one to access the system bars everywhere | |
| @Composable | |
| fun WithVoyagerSystemBars(content: @Composable () -> Unit) { | |
| val systemBarsWindowInsets = WindowInsets.systemBars | |
| CompositionLocalProvider(LocalSystemBarsWindowInsets provides systemBarsWindowInsets) { |
This file contains hidden or 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
| object FirstTab : Tab { | |
| override var navigator: Navigator? = null | |
| override val options: TabOptions | |
| @Composable | |
| get() = TODO("Not yet implemented") | |
| @Composable | |
| override fun Content() { | |
| Navigator(FirstTabFirstScreen()) { | |
| LaunchedEffect(it) { |