Skip to content
pubscout

auto_route_generator

10.6.0, released 5 months ago by codeness.ly

Code generator for the auto_route declarative routing solution.

$ flutter pub add auto_route_generator
Source repository

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.

Works with

Packages commonly used together with auto_route_generator: ones it builds on, ones built on it, and its own family.