auto_route_library icon indicating copy to clipboard operation
auto_route_library copied to clipboard

navigating to different stackrouter child

Open casvanluijtelaar opened this issue 1 year ago • 0 comments

More of a question than an issue:

imagine having a routing setup like this:

image

from inside child 2 I'm trying to go to and open child 1 with messing up the routing stack.

if I just use pushNamed it will bring me to the correct tab and open child 1 but popping that route drops you back to child 2

I want to just go to the first TabRouter page and open child 1 in its stackRouter

switching to the page by using AutoTabsRouter.of(context).setActiveIndex(0) gets me to the right tab leaving the stackRouter stacks intact, then how to I push child 1 onto the first stackRouter stack from inside child 2

casvanluijtelaar avatar Jul 20 '22 12:07 casvanluijtelaar