Getx: Generate navigation stack when using nested routes

Created on 5 Feb 2021  路  2Comments  路  Source: jonataslaw/getx

Hi all.
Could be usefull if Get create the navigation stack when user access one nested route directlly.

Using the docs example, if I create three pages, 'home', 'products' and 'eletronics', like this:

GetPage(
      name: '/home',
      page: () => HomeView(),
      binding: HomeBinding(),
      children: [
        GetPage(
            name: '/products',
            page: () => ProductsView(),
            binding: ProductsBinding(),
            children: [
              GetPage(
                 name: '/electronics',
                 page: () => ElectronicsView(),
                 binding: ElectronicsBinding(),
              ),
            ],
          ),
      ], 
  );

if the user navigate to '.../home/products/eletronics', the navigation stack will be empty and back button will not be visible, so could be usefull if Get sets the navigation stack, but, without building them. just place on navigation stack so the user can back to parent page.

Most helpful comment

With Navigator 1.0, we have no control over the Stack.
With the migration to Navigator 2.0 on GetX 4 this will be possible

All 2 comments

With Navigator 1.0, we have no control over the Stack.
With the migration to Navigator 2.0 on GetX 4 this will be possible

Ok, I will wait for GetX 4.0, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omartinma picture omartinma  路  3Comments

definev picture definev  路  3Comments

DarkHeros09 picture DarkHeros09  路  3Comments

ChiwanAhn picture ChiwanAhn  路  4Comments

rupamking1 picture rupamking1  路  3Comments