go_router_builder 4.5.0
go_router_builder: ^4.5.0 copied to clipboard
A builder that supports generated strongly-typed route helpers for package:go_router
4.5.0 #
- Detects routes that resolve to the same URL pattern. Routes are compared by
the whole URL each one resolves to, so a collision is caught wherever the two
routes sit in the route tree, including across shell routes and
StatefulShellRoutebranches, between relative routes, and between separate annotations in one library. Paths that differ only in a parameter name, or only in casing where the earlier route setscaseSensitive: false, count as the same pattern. These are reported as build warnings by default. The newduplicate_route_pathsbuilder option raises them to build errors witherror, or silences them withignore.
4.4.1 #
- Adds support for analyzer 14.
4.4.0 #
- Adds
hasOverriddenOnExitparameter toGoRouteData.$routeandRelativeGoRouteData.$routehelper methods for type-safe routes. When set totrue, enables customonExitcallback invocation from route data classes extendingGoRouteDataorRelativeGoRouteDatawhen the route is removed from the navigation stack.
4.3.1 #
- Updates minimum supported SDK version to Flutter 3.38/Dart 3.10.
- Adds support for analyzer 13.
4.3.0 #
- Adds support for custom types through
TypedQueryParameterannotation. Theencoder,decoderandcompareparameters allow specifying custom functions for encoding, decoding and comparing query parameters inTypedGoRouteconstructors. For example, you can use aDateTimeparameter with a custom encoder and decoder to convert it to and from a string representation in the URL.
4.2.1 #
- Adds support for analyzer 11 and 12.
4.2.0 #
- Adds supports for
TypedQueryParameterannotation. Itsnameparameter allows specifying a different name for the query parameter than the field name. The name is escaped to be URL-safe. For example@TypedQueryParameter(name: 'field with space')will generate a query parameter namedfield+with+space.
4.1.3 #
- Requires
analyzer8.2 or higher, to avoid experimental APIs. - Updates minimum supported SDK version to Flutter 3.35/Dart 3.9.
4.1.2 #
- Updates supported analyzer versions to 8.x or 9.x.
- Updates minimum supported SDK version to Flutter 3.32/Dart 3.8.
4.1.1 #
- Allow
analyzer: '>=7.4.0 <9.0.0'. - Allow
build: '>=3.0.0 <5.0.0'. - Allow
source_gen: '>=3.1.0 <5.0.0'.
4.1.0 #
4.0.1 #
- Fixes unnecessary whitespace in generated
RelativeGoRouteData.
4.0.0 #
- Make Route mixins public.
3.3.1 #
- Fixes warnings in generated code of iterable parameters.
3.3.0 #
- Adds support for
TypedRelativeGoRoute.
3.2.1 #
- Changes generated whitespace for better compatibility with new Dart formatter.
3.2.0 #
- Adds support for
extension type.
3.1.0 #
- Updates dependencies to use the latest
analyzer,build, andsource_gen. - Updates dev dependencies to use the latest
build_test. - Migrates to the
element2API. - Improves test code formatting consistency.
- Updates minimum supported SDK version to Flutter 3.29/Dart 3.7.
3.0.1 #
- Updates README.md to use the mixin
with _$RouteName.
3.0.0 #
- Route classes now required to use a mixin
with _$RouteName.
2.9.1 #
- Fixes an deprecated warning for using withNullability
2.9.0 #
- Adds support for
caseSensitivefor go routes.
2.8.2 #
- Fixes an issue when enum params are not required
2.8.1 #
- Fixes an issue when navigate to router with invalid params
2.8.0 #
- Adds support for passing
preloadparameter toStatefulShellBranchData.
2.7.5 #
- Fixes trailing
?in the location when a go route has an empty default value.
2.7.4 #
- Fixes an issue by removing unnecessary
constin StatefulShellRouteData generation.
2.7.3 #
- Fixes an issue when using a not null List or Set param.
2.7.2 #
- Supports the latest
package:analyzerandpackage:source_gen. - Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.
2.7.1 #
- Fixes readme typos and uses code excerpts.
2.7.0 #
- Adds an example and a test with
onExit. - Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
2.6.2 #
- Fixes a bug in the example app when accessing
BuildContext.
2.6.1 #
- Fixes typo in
durationDecoderHelperName. - Updates development dependency to
dart_style-2.3.6(compatible withanalyzer-6.5.0).
2.6.0 #
- Adds support for passing observers to the StatefulShellBranch for the nested Navigator.
2.5.1 #
- Updates examples to use uri.path instead of uri.toString() for accessing the current location.
2.5.0 #
- Updates minimum supported SDK version to Flutter 3.13/Dart 3.1.
- Updates dependencies to require
analyzer5.2.0 or later. - Adds
restorationScopeIdtoShellRouteData.
2.4.1 #
- Fixes new lint warnings.
2.4.0 #
- Adds support for passing observers to the ShellRoute for the nested Navigator.
- Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
2.3.4 #
- Fixes a bug of typeArguments losing NullabilitySuffix
2.3.3 #
- Adds
initialLocationforStatefulShellBranchConfig
2.3.2 #
- Supports the latest
package:analyzer.
2.3.1 #
- Adds pub topics to package metadata.
- Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
2.3.0 #
- Adds Support for StatefulShellRoute
2.2.5 #
- Fixes a bug where shell routes without const constructor were not generated correctly.
2.2.4 #
- Bumps example go_router version to v10.0.0 and migrate example code.
2.2.3 #
- Removes
path_to_regexpfrom the dependencies.
2.2.2 #
- Bumps example go_router version and migrate example code.
2.2.1 #
- Cleans up go_router_builder code.
2.2.0 #
- Adds replace methods to the generated routes.
2.1.1 #
- Fixes a bug that the required/positional parameters are not added to query parameters correctly.
2.1.0 #
- Supports required/positional parameters that are not in the path.
2.0.2 #
- Fixes unawaited_futures violations.
- Updates minimum supported SDK version to Flutter 3.3/Dart 2.18.
2.0.1 #
- Supports name parameter for
TypedGoRoute.
2.0.0 #
- Updates the documentation to go_router v7.0.0.
- Bumps go_router version in example folder to v7.0.0.
1.2.2 #
- Supports returning value in generated
pushmethod. go_router CHANGELOG
1.2.0 #
- Adds Support for ShellRoute
1.1.7 #
- Supports default values for
Set,ListandIterableroute parameters.
1.1.6 #
- Generates the const enum map for enums used in
List,SetandIterable.
1.1.5 #
- Replaces unnecessary Flutter SDK constraint with corresponding Dart SDK constraint.
1.1.4 #
- Fixes the example for the default values in the README.
1.1.3 #
- Updates router_config to not passing itself as
extra.
1.1.1 #
- Support for the generation of the pushReplacement method has been added.
1.1.0 #
- Supports default value for the route parameters.
1.0.16 #
- Update the documentation to go_router v6.0.0.
- Bumps go_router version in example folder to v6.0.0.
1.0.15 #
- Avoids using deprecated DartType.element2.
1.0.14 #
- Bumps go_router version in example folder to v5.0.0.
- Bumps flutter version to 3.3.0.
1.0.13 #
- Supports the latest
package:analyzer.
1.0.11 #
- Replace mentions of the deprecated
GoRouteData.buildPagewithGoRouteData.buildPageWithState.
1.0.10 #
- Adds a lint ignore for deprecated member in the example.
1.0.9 #
- Fixes lint warnings.
1.0.8 #
- Updates
analyzerto 4.4.0. - Removes the usage of deprecated API in
analyzer.
1.0.7 #
- Supports newer versions of
analyzer.
1.0.6 #
- Uses path-based deps in example.
1.0.2 #
- Changes the parameter name of the auto-generated
gomethod frombuildContexttocontext.
1.0.0 #
- First release.