Joseph Hawkes-Cates
02/03/2022, 10:00 PMval currentScreen = Screens.from(navController.currentBackStackEntryAsState())
Row {
if(!currentScreen.isFullScreen) {
SideBar()
}
Column {
if(!currentScreen.isFullScreen) {
TopBar()
}
NavHost(){
// define composables
}
}
}
animateVisibility()
for TopBar and SideBar and it helps, but the shifting still happens and doesn’t look right because those animations are out of sync with the navigation animationIan Lake
02/04/2022, 3:06 AMnavController.visibleEntries
API? That gives you the list of all destinations that are currently visible (i.e., the one coming in and the one going out while the animation is happening), thus letting you only run animations after the animation finishes: https://github.com/google/accompanist/issues/633#issuecomment-942988181Joseph Hawkes-Cates
02/04/2022, 3:14 AM