This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Description
Hi. I am trying to implement a fairly complicated navigation in my app using Flow.
In my app I have several sequential screens, they are "nested" one in another (just like in TreeKey example). It is simple if my understanding of TreeKey is correct. (but why does getParentKey() always return a new instance of parent key rather than get its instance from the constructor, is it a limitation of a state restoring process?)
The complicated part is that every screen can have several different "slave" screens (just like in master\slave case), they are just like ChildFragments from pure android. "Slave" screens can replace each other with complicated rules and animations and the "slave" container should have its own backstack, but when the master screen goes out or is destroyed "slaves" should be hidden or destroyed as well.
Should I use MultiKey for this purpose? Or should I use nested Flow instances (not sure that it is possible)?