FLUTTER ECOSYSTEM

go_router_builder

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

Latest version
4.3.0
30-day downloads
210.7K
Likes
294
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

go_router_builder is a Flutter package that generates strongly-typed route helpers for the go_router package, enhancing navigation safety and developer productivity. It enables compile-time validation of routes by generating Dart code from route definitions, reducing runtime errors. The builder integrates seamlessly with go_router, supporting all major platforms including Android, iOS, macOS, Windows, and Linux. Developers benefit from auto-completion, refactoring support, and improved code readability when managing complex routing logic in Flutter apps.

Use cases
  • Type-safe navigation between routes
  • Automated route helper generation
  • Improved refactoring in large routing setups
  • Reducing runtime navigation errors
  • Simplifying deep linking and route matching
Key features
  • Strongly-typed route references
  • Automatic code generation from route config
  • Compile-time route validation
  • Integration with go_router
  • Support for deep linking and dynamic routes
Suitable for
  • Large-scale Flutter applications
  • Teams prioritizing code safety
  • Developers using go_router extensively
  • Projects requiring maintainable routing logic
  • Apps with complex navigation flows
Considerations
  • Requires setup of route configuration files
  • Needs build_runner to generate code
  • May increase build time slightly
  • Not needed for simple navigation scenarios
  • Dependent on go_router version compatibility
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add go_router_builder

Categories

Source repository

Related projects