Setting up auto route

For this project, we are going to use auto_route for routing between screens as named routes. So to begin first add it on your "pubspec.yaml"

  dependencies: 
    auto_route: ^0.6.9
    
  dev_dependencies:
    auto_route_generator: ^0.6.10
    build_runner: ^1.11.1

So auto route uses code generation if you're new to code generation in dart check out this articlearrow-up-right.

After that let's go ahead and create our first page and create our router.

Last updated

Was this helpful?