auto_route_library icon indicating copy to clipboard operation
auto_route_library copied to clipboard

Erro de null ao navegar para um filho de um AutoTabsRouter.pageView

Open Natan-hub opened this issue 8 months ago • 1 comments

I have a page in which I build a bottomNavigationBar that has the main screens, and with AutoRoute I put a child to keep the bottom bar in a sub navigation, but when you navigate to that page the data that I originally receive in my TabbarCubitView.page comes all null.

This is where I declare the routes, the TabbarCubitView page is the page where I build my bottom navigation and it has the main pages in its children. And as you can see, the ArtigosView has a children which is MaisCategorias which would be the sub navigation where I want to keep my bottom bar appearing : image

Aqui onde construo a bottom bar, que seria a page TabbarCubitView : image

and here is where within ArticlesView I navigate to MaisCategorias : image

and here the error : image

Natan-hub avatar Dec 04 '23 14:12 Natan-hub

@Natan-hub it's not clear to me how you do the navigation, but if you're navigating by name try to navigate by index -> tabsRouter.setActiveIndex()

Milad-Akarie avatar Dec 07 '23 11:12 Milad-Akarie