Mortar-Flow-Dagger2-demo icon indicating copy to clipboard operation
Mortar-Flow-Dagger2-demo copied to clipboard

subflow and drawer/toolbar

Open teachmeit opened this issue 9 years ago • 1 comments

This code looks very clean! Is there a way to start a subflow inside the main flow? For example, when detect there is permission issue, start a "login" flow to sign in/sign up. Also, is there any example/suggestion to integrate navigation draw and toolbar into this?

teachmeit avatar Jul 01 '15 20:07 teachmeit

I made one, but with Mortar/Architect and not with Mortar/Flow.
Architect is a library I made that is a replacement of Flow, you can find more about it and the motivation behind in its readme: https://github.com/lukaspili/Mortar-architect

You can then checkout the following ViewPresenter, that creates a sub-navigation: https://github.com/lukaspili/Mortar-architect/blob/master/app/src/main/java/com/mortarnav/presenter/SubnavPresenter.java

And also this project, that showcase how to use DrawerLayout with sub view presenters: https://github.com/lukaspili/Mortar-architect-map-demo

lukaspili avatar Jul 07 '15 20:07 lukaspili