Repository navigation
[go_router] Add support for the TabView for more beautiful animation #112267
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage teamc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitya: animationAnimation APIsAnimation APIspackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: go_routerThe go_router packageThe go_router packageand removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Sep 23, 2022 Perhaps this can also be solved with a solution like the one I proposed in a comment to #99124. That change proposes a new
ShellRoutesubclass, that doesn't create a navigator, but instead delegates navigation handling to the child of the shell route.I was also able to create a workaround without modifying
go_routeritself - see example in this gist. In that example, a customShellRoutesubclass is also created, which simply bypasses the navigator of the shell route. Perhaps this example could also be adapted to your use case.- changed the title
[-]Add support for the TabView for more beautiful animation[/-][+][go_router] Add support for the TabView for more beautiful animation[/+]on Sep 27, 2022 - addedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter project
on Sep 27, 2022 This feature can be added once flutter/packages#2650 is landed
Reacted by Sergio Molchanovsky and Rafael Diaz+1 for TabView support. You may want to also support PageView (in case we don't have tabs and want to scroll pages by gesture).
Both TabView and PageView are already supported inauto_routehttps://pub.dev/packages/auto_route#tab-navigation, but in ugly manner (it requires its own sub-router, so routing is smeared over the application). With ShellRoute it would be much nicer.30 remaining items
- added 4 commits that reference this issue
on Jun 10, 2026 - added 7 commits that reference this issue
on Jun 19, 2026 - addedteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamTriaged by Ecosystem teamand removedteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
on Aug 26, 2026
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Use case
In our app we are using a TabBar with TabView. This create a nice animation when using the tabs.
Now with
go_router5.0.0 we can use a ShellRoute but it returns the child in a Navigator. This works but we are losing the nice animation when switching tabs with a TabView.I was thinking maybe we can create a
TabBarShellRoutewhich gets wrapped in aDefaultTabControllerand then returns a child as aTabViewwith all the child routes inside of which each have their ownNavigator.Then maybe create a
TabViewGoRoutewhich doesn't have a pageBuilder and of which the childroutesare a list of the normalGoRouteobjects.Proposal