FLUTTER ECOSYSTEM

auto_route_generator

AutoRoute is a declarative routing solution, where everything needed for navigation is automatically generated for you.

Latest version
10.5.0
30-day downloads
308K
Likes
163
Pub points
150

Package Overview

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

Overview

AutoRoute Generator is a Flutter package that provides a declarative routing solution, automatically generating navigation code based on route definitions. It eliminates boilerplate by creating type-safe routes, navigators, and route guards from annotations. Developers define routes in a structured way, and the generator handles the rest, ensuring compile-time safety and reducing runtime errors. Ideal for apps with complex navigation needs, it supports deep linking and dynamic routing. The package integrates seamlessly with the AutoRoute library and works across all major platforms.

Use cases
  • Complex app navigation
  • Type-safe routing
  • Deep linking support
  • Dynamic route generation
  • Reducing boilerplate
Key features
  • Automatic route generation
  • Type-safe navigation
  • Compile-time route validation
  • Support for route guards
  • Platform-agnostic
Suitable for
  • Large-scale Flutter applications
  • Teams prioritizing code safety
  • Developers using declarative routing
  • Projects requiring deep linking
  • Apps with frequent route changes
Considerations
  • Requires build_runner setup
  • Learning curve for new users
  • Limited customization without manual code
  • Depends on annotation processing
  • May increase build time
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add auto_route_generator

Categories

Source repository

Related projects