csells / go_router

The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
https://gorouter.dev
441 stars 96 forks source link

go Directly to books/new (tab child) #376

Closed fullflash closed 2 years ago

fullflash commented 2 years ago

Hi, in your example books app how can we acchive to directly open sub route child tab ?

it would be nice if we can directly open nested route page there are a gg_route package with example to achive this.

i have tried adding extra textbutton in your settings page but it just opens books main page first tab now the last one as it should be for path "/books/all

 TextButton(
              onPressed: () {
                context.go('/books/all');
              },
              child: const Text('Go directly to /books/all (GoRouter)'),
            ),