route_architect 1.0.1
route_architect: ^1.0.1 copied to clipboard
Enterprise-grade Flutter routing on go_router. Async guard pipeline, deep-link safety, bottom-nav shell, analytics observers, and declarative API.
1.0.1 #
- Fix: trim
pubspec.yamldescription to satisfy pub.dev's 60-180 character requirement. - Fix: broaden
go_routerconstraint from^14.0.0to'>=14.0.0 <18.0.0'to support all current stable versions (14.x – 17.x).
1.0.0 #
Initial public release.
Core #
RouteArchitect.create– single static factory that builds a fully-configuredGoRouterwith an optional guard pipeline, fallback/error-screen strategy, analytics observers, refresh listenable, restoration scope, and redirect limit.RouteGuard– abstract base class for a single guard step (FutureOr<String?>).GuardPipeline.run– Chain-of-Responsibility executor; short-circuits on the first non-null redirect.
Navigation Shell #
EnterpriseBottomNav– production-ready bottom navigation widget forStatefulShellRoutewith double-tap-to-root support.NavigationItem– immutable tab descriptor (label, icon, activeIcon, tooltip).ShellBranchItem– combinesNavigationItemmetadata with branch routes for fully declarative shell setup.EnterpriseShell.buildRoute– zero-boilerplateStatefulShellRoutebuilder from a list ofShellBranchItems.
Analytics #
RouteAnalyticsObserver– abstractNavigatorObserverwithonScreenView,onScreenPop, andonRouteErrorhooks.DebugRouteObserver– dev-mode console logger (ships with the package).
State-Management Bridge #
ListenableNotifiermixin – bridges Riverpod, Bloc, MobX, and any state manager toGoRouter.refreshListenable.StreamListenable– converts anyStreaminto aListenable.
Extensions #
RouteArchitectExtensionsonBuildContext:architectPush<T>– push a route and await a compile-time-safe typed return value.architectPop<T>– pop and return a typed result to the awaiting caller.architectPushNamed<T>– named-route variant with path/query parameters.