Skip to content

[go_router] Add parentNavigatorKey to ShellRoute #111678

@johnpryan

Description

@johnpryan

Right now, ShellRoute does not support parentNavigatorKey. The behavior would be the same as GoRoute. For example, in this configuration, navigating to /a/b/c would place a new page on top of the root ShellRoute's page for routes b and c:

ShellRoute(
  routes: [
    GoRoute(
      path: '/a',
      routes: [
        ShellRoute(
          parentNavigatorKey: root
          routes: [
            GoRoute(
              path: 'b'
              routes: [
                GoRoute(
                  path: 'c',
                ),
              ],
            ),
          ],
        ),
      ],
    ),
  ],
)

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterp: go_routerThe go_router packagepackageflutter/packages repository. See also p: labels.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions