You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to handle animations differently when navigating between BottomBar items compared to other standard navigations? It's difficult to differentiate within the AnimationStyle if the start destination is the first tab item for example because the top parent in the nav graph will always be that route.
My BottomBar implementation follows the same as the sample app:
// ...
onClick = {
if (isCurrentDestOnBackStack) {
// When we click again on a bottom bar item and it was already selected
// we want to pop the back stack until the initial destination of this bottom bar
// item
navigator.popBackStack(destination.direction, false)
return@NavigationBarItem
}
navigator.navigate(destination.direction) {
popUpTo(NavGraphs.root) { saveState = true }
launchSingleTop = true
restoreState = true
}
},
The text was updated successfully, but these errors were encountered:
Is there a way to handle animations differently when navigating between BottomBar items compared to other standard navigations? It's difficult to differentiate within the AnimationStyle if the start destination is the first tab item for example because the top parent in the nav graph will always be that route.
My BottomBar implementation follows the same as the sample app:
The text was updated successfully, but these errors were encountered: