Repository navigation
Does Voyager already support List Detail (Dual Pane) navigation? #417
Replies: 1 comment
|
You can build this by placing the list beside the region rendered by For a desktop layout: Navigator(EmptyDetailsScreen) { details ->
Row(Modifier.fillMaxSize()) {
Box(Modifier.weight(1f).fillMaxHeight()) {
ItemList(onSelect = { id ->
details.replaceAll(DetailsScreen(id))
})
}
Box(Modifier.weight(2f).fillMaxHeight()) {
CurrentScreen()
}
}
}
For independent navigation inside both panes, give each pane its own The adaptive width decision remains in your Compose layout. If switching between one and two panes, keep the selected item ID above that layout switch so changing window size doesn't discard the selection. See the custom navigator content and stack operations. |
Uh oh!
There was an error while loading. Please reload this page.
I would like to implement a List-Detail kind of dual pane UI for the desktop app in a KMP project.
We have tab-navigation for mobile devices. But is there also a way to implement a dual pane navigation for, in my case, desktop. Or for list-detail UI's on tablet for example?
All reactions