question for those who are using one
NavHost
, one
Scaffold
and
BottomNavigation
at the root level, with many nested screens & Composables under that: is there a recommended way to show and hide the
BottomNavigation
?
I have a nested
LazyColumn
which I’d like to use to trigger showing/hiding of that
BottomNavigation
when I scroll up/down. this is fairly simple when the
BottomNavigation
is “closer” to the Composable triggering it, but when it’s deeply nested I wonder what the best solution is?
do I simply pass a lambda like
toggleBottomNavigationVisibility
all the way from the top level where the
Scaffold
is, through many Composables, down into my deeply nested one? this would work but I would like to know if there’s a better way and my brain isn’t seeing it 😄