go_router_tree 0.1.1 copy "go_router_tree: ^0.1.1" to clipboard
go_router_tree: ^0.1.1 copied to clipboard

Code generator that builds route trees for package:go_router.

0.1.1 #

Support analyzer 10.0

0.1.0 #

  • Breaking change: requires analyzer >=8.2.0 <10.0.0
  • No functional changes compared to 0.0.3
  • This version starts the analyzer 8+ support line
  • Recommended for Flutter SDKs using analyzer 8+

For analyzer < 8.2.0, use go_router_tree ^0.0.4.

0.0.4 #

  • Maintenance: Downgraded build_runner (to ^2.3.3) and build_test constraints to support older development environments.
  • Refactor: Migrated internal generator logic to use Element2 API for compatibility with analyzer >=7.5.9.
  • Fix: Capped analyzer dependency to <8.2.0 to ensure stability.

0.0.3 #

  • Fix: Adjusted version constraints for analyzer (>=7.5.9) and dart_style (^3.0.0).
  • Build: Bumped minimum Dart SDK version to 3.8.0.

0.0.2 #

  • Feat: Enhanced generated API documentation for navigation methods (goNamed, pushNamed, etc.). The docs now include:
    • Action-specific descriptions (e.g., "Pushes onto stack").
    • Detailed list of required path parameters.
    • Descriptions for queryParameters and extra.
  • Fix: Relaxed version constraints for analyzer, build, and source_gen to improve compatibility with other ecosystem packages.

0.0.1 #

  • Initial release.
  • Implemented code generation for route trees based on @RouterTreeConfig annotation.
  • Added generation of typed navigation methods for each route: goNamed(), pushNamed(), pushReplacementNamed(), and replaceNamed().
  • Added support for extraction of path parameters (e.g., user/:id).
  • Included compile-time validation:
    • Detects duplicate route names and paths.
    • Validates path syntax and structure.
    • Checks for path parameter conflicts in nested routes.
2
likes
150
points
40
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Code generator that builds route trees for package:go_router.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

analyzer, build, build_config, code_builder, dart_style, go_router_tree_annotation, path, source_gen, source_span

More

Packages that depend on go_router_tree