Update to go_router 17.2.3 — plus new features and an important fix.
—
⚠️ Breaking change
All route enums implementing
DwNavigationRoute must add a new getter:@override
DwStatefulShellRouteBuilder? get statefulShellRouteBuilder => null;
The compiler will show you exactly where.
—
What's new
statefulShellRouteBuilder — the right way to build a bottom nav bar with independent navigation branches. Scroll position, nested routes and widget state are preserved when switching tabs. Recommended over shellRouteBuilder for any tab-based layout.onEnter — a hook that fires before redirect and zoneGuards. Useful for analytics or any logic that needs to run before route matching.caseSensitive (default true) — set to false and /Profile resolves the same as /profile.shellNotifyRootObserver (default true) — controls whether ShellRoute / StatefulShellRoute zones trigger root navigator observer callbacks on internal navigation.Fix:
DwPageBuilder.slide — the from parameter now describes the direction the page enters from. AxisDirection.right means the page slides in from the right. Previously the offset was inverted.—
dart pub add dartway_router
github.com/dartway/dartway_router