jaspr_router
A routing component for jaspr.
0.9.0
21K downloads/mo
#2165 most downloaded on pub.dev
schultek/jaspr
What this package is like to depend on
Last release 20 days ago
04 Aug 2026
Release timing varies
gaps range from 9 days to 4 months
Nearly every release is documented
notes for 27 of 27 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
30 releases · first in 2022
10 releases in the last 12 months
see the full history below
Release timeline
30 releases · Jun 2022 to Aug 2026Releases
latest 30-
0.9.004 Aug 2026Release notes
Open source →The following packages have been updated:
jaspr_test : 0.23.2 -> 0.23.3
jaspr : 0.23.2 -> 0.23.3
jaspr_builder : 0.23.2 -> 0.23.3
jaspr_router : 0.8.3 -> 0.9.0
jaspr_cli : 0.23.2 -> 0.23.3
jaspr_content : 0.5.3+1 -> 0.5.4
dart_quotes : 0.1.12 -> 0.1.13 (No Changelog)
dart_quotes_server : 0.1.12 -> 0.1.13 (No Changelog)
fluttercon : 0.0.13 -> 0.0.14 (No Changelog)
website : 0.1.8 -> 0.1.9 (No Changelog)Release notes
Open source →- Made
RouteSettings.prioritynullable and default tonullinstead of0.5, so the sitemapprioritytag can be omitted (consistent withchangeFreq). - Added
dispose()to theHistoryManagerinterface. - Implemented
RouterState.dispose()to cancelonPopStatesubscriptions when the router is unmounted.
- Made
-
0.8.314 Jul 2026Release notes
Open source →- Fixed routing and redirect bug to respect the
<base href="...">configuration by prependingbasePathon client history operations, server redirect headers, andLinkhrefs.
- Fixed routing and redirect bug to respect the
-
0.8.217 Apr 2026 -
0.8.110 Dec 2025 -
0.8.1-beta.001 Dec 2025 pre-releaseNothing published for this version
-
0.8.013 Nov 2025Release notes
Open source →- Using a
redirectfunction onRouterorRoutewhile rendering on the server will now trigger a HTTP redirect (302) instead of rendering the target page.
- Using a
-
0.7.313 Sep 2025 -
0.7.213 Sep 2025 -
0.7.2-dev.103 Sep 2025 pre-releaseNothing published for this version
-
0.7.2-dev.002 Sep 2025 pre-releaseNothing published for this version
-
0.7.119 Jul 2025 -
0.7.014 May 2025Release notes
Open source →- Added
settingsparameter toRoutefor specifying sitemap settings likepriorityandchangefreq.
- Added
-
0.6.403 Mar 2025 -
0.6.324 Feb 2025 -
0.6.210 Feb 2025 -
0.6.112 Jan 2025 -
0.6.004 Oct 2024 -
0.5.121 Aug 2024 -
0.5.014 Aug 2024Release notes
Open source →- Changed the signature of the
Linkcomponent,childrenis now a named parameter.
- Changed the signature of the
-
0.4.222 May 2024Release notes
Open source →- The title of the browser tab will no be properly set to the
titleof the current route. - Fixed race condition where routes were skipped during static rendering.
- The title of the browser tab will no be properly set to the
-
0.4.114 Apr 2024Release notes
Open source →- Fixed issue where
replaceNamedfromGoRouterHelperwas not passing parameters correctly. - Fixed bug with redirects on the server.
- Fixed issue where
-
0.4.004 Apr 2024Release notes
Open source →-
Added
Linkcomponent to simplify router-aware navigation.The
Linkcomponent lets the user navigate to another route by clicking or tapping on it. It uses client-side routing if possible and fall back to the default browser navigation if noRoutercomponent is present in the tree. It will render an accessible<a>element with a validhref, which means that things like right-clicking aLinkwork as you'd expect. -
Fixed redirects on initial load.
-
Fixed proper handling of
<base>path.
-
-
0.3.122 Jan 2024 -
0.3.010 Sep 2023Release notes
Open source →-
Added Static Site Generation support. Pages are automatically generated for each route.
-
Fixed bug where
Router.of(context).matchList.titlealways returned null.
-
-
0.2.310 Aug 2023 -
0.2.208 Aug 2023 -
0.2.125 Jul 2023 -
0.2.027 May 2023Release notes
Open source →-
BREAKING Complete overhaul of the router package.
The router implementation is mainly adapted from the go_router package for Flutter.
Routing works by providing a set of routes to the router component. You can choose between a normal
Routeand aShellRoute. AShellRouteacts as a layout wrapper around the child routes.Each
Routetakes a path which can contain parameters like'/users/:userId'.Both
RouteandShellRoutehave a.lazyvariant used for lazy-loading parts of the application.Router(routes: [ // simple routes Route(path: '/', builder: (context, state) => HomePage()), Route(path: '/about', builder: (context, state) => AboutPage()), // route with a path parameter Route(path: '/users/:userId', builder: (context, state) => UserPage(id: state.pathParameters['userId'])), // nested routes Route(path: '/base', builder: (context, state) => BasePage(), routes: [ // full location will be '/base/details' Route(path: 'details', builder: (context, state) => DetailsPage()), ]), // shell route ShellRoute( builder: (context, state, child) => CustomLayout(child: child), routes: [ Route(path: '/dashboard', builder: (context, state) => DashboardPage()), ] ), // lazy loaded route // this assumes a deferred import like "import 'posts.dart' deferred as posts;" Route.lazy(path: '/posts', builder: (context, state) => posts.Posts(), load: posts.loadLibrary), // lazy loaded shell route ShellRoute.lazy( builder: (context, state, child) => CustomLayout(child: child), load: () => someAsyncTask(), routes: [ Route(path: '/data', builder: (context, state) => DataPage()), ] ) ]);While the router docs are work in progress, you can refer to the go_router docs for some references (don't expect everything to work exactly the same, but the core concepts are similar).
-
-
0.1.124 May 2023 -
0.1.002 Jun 2022