google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.38k stars 596 forks source link

[Navigation Material] How can I navigate between two bottom sheet screens without the first looking like it closed? #1664

Closed ek868 closed 1 year ago

ek868 commented 1 year ago

Currently it seems like if I navigate from one bottom sheet screen to another, then the first sheet will go down, and a moment later the new sheet will come back up.

Is there a way to make it such that the first sheet remains where it is, and the second sheet appears over it? So as to create the impression that the bottom sheets are stacking.

I am trying to recreate the feel of an iOS app wherein the bottom sheets stack as described.

ek868 commented 1 year ago

I forgot to mention, I attempted programatically nesting NavHosts in each screen. This works but every so often I encounter a crash with an error along the lines of "ViewModelStore should be set before getGraph() is called". Further, attempting to programatically open another bottom sheet after the current one is closed consistently throws this error.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.