Hey everyone, I have `Voyager` question. I checke...
# compose
k
Hey everyone, I have
Voyager
question. I checked and can't find channel for this lib, so hopefully this still the correct place. When using
TabNavigator
, how should we pass the `Scafold`'s contentPadding into the
CurrentTab
?
Copy code
val hazeState = remember { HazeState() }
    TabNavigator(HomeScreen()) {
        Scaffold(
            modifier = Modifier
                .fillMaxSize(),
            topBar = {
                TopBar(hazeState = hazeState)
            },
            bottomBar = {
                BottomBar(hazeState = hazeState)
            },
            content = { contentPadding ->
                // How to use the contentPadding in the content
                CurrentTab()
            }
        )
    }
And also how can I apply modifier to the CurrentTab ? In my case, I would like to apply
Modifier.haze
b
Composition local would work
k
Ah yeah. Will give it a try. Thanks!