Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update routing overview doc to add TypedShellRoute example #91

Open
AnnaPS opened this issue Jan 22, 2025 · 0 comments
Open

docs: update routing overview doc to add TypedShellRoute example #91

AnnaPS opened this issue Jan 22, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@AnnaPS
Copy link
Contributor

AnnaPS commented Jan 22, 2025

Hi!
I've read our VGE about Go Router and after doing a POC using that approach (since I've never used TypedGoRoute in projects), I realized that we don't talk about anything related to ShellRoute in that documentation. So I've been playing around with Go_Router and I've discovered that there's TypedShellRoute, which allows you to have nested routes, like for BottomNavigationBar, for example.
I think ShellRoute is common in mobile apps and it might be interesting to include it in that documentation.

Thoughts?

Example

@TypedShellRoute<AppShellRoute>(
  routes: <TypedRoute<RouteData>>[
    TypedGoRoute<FirstPageRoute>(
      path: FirstPageRoute.path,
      routes: [
        TypedGoRoute<DetailPageRoute>(
          path: DetailPageRoute.path,
        ),
      ],
    ),
    TypedGoRoute<SecondPageRoute>(
      path: SecondPageRoute.path,
    ),
  ],
)
@AnnaPS AnnaPS added the documentation Improvements or additions to documentation label Jan 22, 2025
@AnnaPS AnnaPS changed the title docs: update routing_overview doc to add TypedShellRoute example docs: update routing overview doc to add TypedShellRoute example Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant