go_router_builder 4.3.0 copy "go_router_builder: ^4.3.0" to clipboard
go_router_builder: ^4.3.0 copied to clipboard

A builder that supports generated strongly-typed route helpers for package:go_router

4.3.0 #

  • Adds support for custom types through TypedQueryParameter annotation. The encoder, decoder and compare parameters allow specifying custom functions for encoding, decoding and comparing query parameters in TypedGoRoute constructors. For example, you can use a DateTime parameter 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 TypedQueryParameter annotation. Its name parameter 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 named field+with+space.

4.1.3 #

  • Requires analyzer 8.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 #

  • Adds support for classes that support fromJson/toJson. #117261
  • Adds annotation that enable custom string encoder/decoder #110781

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 forextension type.

3.1.0 #

  • Updates dependencies to use the latest analyzer, build, and source_gen.
  • Updates dev dependencies to use the latest build_test.
  • Migrates to the element2 API.
  • 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 caseSensitive for 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 preload parameter to StatefulShellBranchData.

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 const in StatefulShellRouteData generation.

2.7.3 #

  • Fixes an issue when using a not null List or Set param.

2.7.2 #

  • Supports the latest package:analyzer and package: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 with analyzer-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 analyzer 5.2.0 or later.
  • Adds restorationScopeId to ShellRouteData.

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 initialLocation for StatefulShellBranchConfig

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_regexp from 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 #

1.2.1 #

  • Supports opt-in required extra parameters. #117261

1.2.0 #

  • Adds Support for ShellRoute

1.1.7 #

  • Supports default values for Set, List and Iterable route parameters.

1.1.6 #

  • Generates the const enum map for enums used in List, Set and Iterable.

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.2 #

  • Adds support for Iterables, Lists and Sets in query params for TypedGoRoute. #108437.

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.12 #

  • Adds support for enhanced enums. #105876.

1.0.11 #

  • Replace mentions of the deprecated GoRouteData.buildPage with GoRouteData.buildPageWithState.

1.0.10 #

  • Adds a lint ignore for deprecated member in the example.

1.0.9 #

  • Fixes lint warnings.

1.0.8 #

  • Updates analyzer to 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.5 #

  • Update example to avoid using push() to push the same page since is not supported. #105150

1.0.4 #

  • Adds push method to generated GoRouteData's extension. #103025

1.0.3 #

  • Fixes incorrect separator at location path on Windows. #102710

1.0.2 #

  • Changes the parameter name of the auto-generated go method from buildContext to context.

1.0.1 #

1.0.0 #

  • First release.
294
likes
160
points
212k
downloads

Documentation

API reference

Publisher

verified publisherflutter.dev

Weekly Downloads

A builder that supports generated strongly-typed route helpers for package:go_router

Repository (GitHub)
View/report issues
Contributing

Topics

#codegen #deep-linking #go-router #navigation

License

BSD-3-Clause (license)

Dependencies

analyzer, async, build, build_config, collection, meta, path, source_gen, source_helper

More

Packages that depend on go_router_builder