Skip to content

Commit eca7601

Browse files
authored
[go_router] Link ShellRoute docs to StatefulShellRoute (flutter#13120)
Adds a direct link from the `ShellRoute` API documentation to `StatefulShellRoute`, explaining its separate navigation stacks and preservation of branch state. Fixes flutter#145675. ## Pre-Review Checklist **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent d1a7bab commit eca7601

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎packages/go_router/lib/src/route.dart‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,11 @@ class ShellRouteContext {
714714
/// ),
715715
/// ```
716716
///
717+
/// See also:
718+
///
719+
/// * [StatefulShellRoute], which maintains separate navigation stacks for its
720+
/// branches and preserves their state when switching between them.
721+
///
717722
/// {@category Configuration}
718723
class ShellRoute extends ShellRouteBase {
719724
/// Constructs a [ShellRoute].
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
changelog: |
2+
- Adds a link from `ShellRoute` to `StatefulShellRoute` for navigation with persistent branch state.
3+
version: patch

0 commit comments

Comments
 (0)