Hi, what would you suggest for implementing two pa...
# compose
p
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.
Copy code
SplitLayout(
    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)