Repository navigation
Is It possible to use transitions in tab navigation? #119
Replies: 2 comments
|
Also looking for the same thing. |
|
Yes, you can use Compose's TabNavigator(HomeTab) { tabs ->
Crossfade(
targetState = tabs.current,
label = "tab-fade",
) { tab ->
tabs.saveableState(
key = "animated-tab",
tab = tab,
) {
tab.Content()
}
}
}Your drawer can continue changing The detail that matters is rendering the lambda's The explicit Voyager's References: TabNavigator API implementation, Compose Crossfade. |
Uh oh!
There was an error while loading. Please reload this page.
I implemented tab navigation using a navigation drawer.
Is It possible to use FadeTransition when TabNavigation change its CurrentTab?
All reactions