has anyone seen decent examples of master/detail apps built with Compose? looking at building something which Iād like to run on both phones and tablets with a slightly enhanced tablet view. last time I had to do this was before Android Architecture components even existed (so pre-ViewModel etc).. Iām wondering if anyone has seen anything with a master/detail tablet view which is using modern architecture, and specifically Compose?
tl/dr: every screen should be responsive. Some subset of your screens may want to use a two pane layout. Generally, that means a fixed left pane (managed by the two pane screen) and using a nested NavHost / etc. for the right pane
Ian Lake
04/12/2021, 12:33 AM
There's no
SlidingPaneLayout
equivalent in Compose as of yet (something that would automatically adapt to the available size to either overlap the two panes or show them side by side), so you would need to write that yourself at this moment (it is on the todo list for later this year though)