Stylianos Gakis
06/03/2023, 5:38 PMStylianos Gakis
06/03/2023, 5:39 PMStylianos Gakis
06/03/2023, 5:44 PMStylianos Gakis
06/03/2023, 5:46 PMEnterTransition.None
and ExitTransition.None
for the transitions I get the same thing, so it’s not my transition either 😅
I really can’t figure out what is it that makes it animate like that, while the screen is laid out properly and the borders show where they should be 🤔Stylianos Gakis
06/03/2023, 9:44 PMColumn {
NavHost(Modifier.weight(1f)) {...}
val height by animateDpAsState(if (showBottomNav) 120.dp else 0.dp)
BottomNavBar(Modifier.height(height))
}
I don’t think I should be experiencing what I am experiencing here 🤔dorche
06/05/2023, 12:42 PMStylianos Gakis
06/05/2023, 12:49 PMdorche
06/05/2023, 12:57 PMdorche
06/05/2023, 12:58 PMStylianos Gakis
06/05/2023, 12:59 PMdorche
06/05/2023, 1:21 PMStylianos Gakis
06/05/2023, 1:23 PMScaffold
does,dorche
06/05/2023, 2:00 PMBox {
NavHost(addBottomNavPadding = showBottomNav) // pseudo code
AnimatedVisibility(showBottomNav) {
BottomNav()
}
}
What do you need to get out of a SubComposeLayout?Stylianos Gakis
06/05/2023, 4:52 PMcontentPadding
. So if I apply that padding to the NavHost itself then as the bottom bar animates out, I need to also animate that padding so that it feels like they’re attached to each other, while in reality all they’re doing is being in the same box, only with “matching” height/bottom padding between them. While all I needed in reality is a column where the NavHost takes the space that the bottom bar does not take.
And if I make the NavHost take up the entire height anyway, there’s no way to pass to every single item it may have inside of it the bottom height so that it will use it to pad itself. It would mean every single screen in my entire app needs to do that.
Not sure if I am thinking about this with a wrong approach though, I might come up with a better idea the more I think about it. Or maybe even unblock myself from understanding what you really mean if I am still misunderstanding you.dorche
06/05/2023, 4:58 PM