auto_route_generator
10.6.0, released 5 months ago by codeness.ly
Code generator for the auto_route declarative routing solution.
What it does
Generates all the necessary routing and navigation code for the auto_route library based on your annotated widgets and route configurations.
AI-written summary of version 10.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using auto_route for your application's navigation
- You want automated generation of route paths and parameters
Skip it when
- You are not using the auto_route package
- You prefer writing all navigation route configurations manually
Strengths
- Automates boilerplate routing code
- Integrates seamlessly with the auto_route library
Weaknesses
- Requires running a code generator (build_runner)
- Tight dependency coupling with specific auto_route versions
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 9
Requires build_runner to run code generation alongside auto_route.
Alternatives
Packages that do the same job and could replace auto_route_generator.
- go_router_builder
Alternative code generation tool if you are using go_router instead of auto_route.
92Compare
Works with
Packages commonly used together with auto_route_generator: ones it builds on, ones built on it, and its own family.
- analyzerauto_route_generator depends on itPerforms static analysis of Dart code for tool integration and embedding.
- globauto_route_generator depends on itA file and directory globbing library that supports Bash-style path matching and listing.
- dart_styleauto_route_generator depends on itProvides an API and CLI to format Dart source code automatically.
- code_builderauto_route_generator depends on itA fluent, builder-based library for generating valid Dart code programmatically.
- buildauto_route_generator depends on itPackage for authoring build_runner compatible code generators.
- source_genauto_route_generator depends on itSource code generation builders and utilities for the Dart build system.
- lean_builderauto_route_generator depends on itLean Builder: a fast, efficient Dart build system for code generation
- auto_routeauto_route_generator depends on itA Flutter package for declarative, strongly‑typed navigation with code‑gen support.