Skip to content

opt.: use GoRouter and multi-navigator for desktop #1002

@lollipopkit

Description

@lollipopkit
  • Use go_router with StatefulShellRoute.indexedStack to build a desktop Shell (NavigationRail + content area).
  • Create one Navigator per sidebar destination (branch navigator keys) to keep independent stacks per section.
  • Keep a Root Navigator for global routes/overlays (login, full-screen flows, app-wide dialogs via rootNavigator).
  • Define deep-linkable paths for all detail pages (e.g., /inbox/thread/:id).
  • Back/shortcuts: pop current branch first (PopScope + maybePop); support Esc / Cmd+[ / Alt+Left.
  • Responsive: same routing; only swap UI (Rail on desktop, BottomNav/Drawer on narrow screens).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions