Thanks. For the most cases, i think i found good compose-style solutions, but I'm still having a hard time figuring this one out.
I mean sure, i can set the topbar up somewhere else, but I'd like to have the behaviour of topbar buttons defined inside the "screens". For example, we have a filter button in the TopBar that should filter a list view on one screen. On another screen, another button may be shown for a different purpose.
I can't propagate the click events down the tree, because it's not a state. I can't really perform the action in the MainActivity (or top-level composable), because it doesn't have knowledge of the viewmodels of the sub screens (i shouldn't keep all ViewModels at the top, or should i?).
I could use separate Scaffolds, but then again, I need a permanent BottomBar, because it has some fancy transition animation between screens.