-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: go_routerThe go_router packageThe go_router packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
As a next step to Nested stateful navigation with ShellRoute, it would be great to support an option to allow pre-loading of all the main branches.
This is to support data-oriented apps where each bottom navigation tab needs to fetch some data. While currently this can be done by doing the pre-fetching from within the initial bottom navigation tab, I think its best to have each tab resposible for its own logic and currently this is impossible as all tabs except the initial aren't loaded unless the user explicitly clicks the tab.
Proposal
Introduce an option to StatefulShellRoute whether or not to load all main branches.
biklas7, vanyasem, Mouadzz, sigis151, millerovv and 7 moretolo, dinbtechit, Mouadzz, cedvdb and nateshmbhatnguyenvanquangqui, cedvdb and nateshmbhatsigis151, vberankis, brackendev, flurrux, marius-bareisa-telia and 3 more
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: go_routerThe go_router packageThe go_router packagepackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.