Petr Laštovička

02/11/2023, 5:00 PM
Hi, what would you suggest for implementing two page layout in Appyx using backstack? I want to use normal BS behavior on Compact screens and Two pane on large using the same NavModel. Of course the two pane layout needs to show a special state/node when no detail is selected.
    panel1 = {
        PermanentChild(navTarget = DishList)
    panel2 = {
        val elements by backStack.elements.collectAsState()

        if (elements.size <= 1) {
            PermanentChild(navTarget = NoDishSelected)
        } else {
            Children(navModel = backStack)
But this flickers the base node when switching (as expected)