Back
Glossary

go_router (Flutter)

The official declarative routing package for Flutter, built on the Router API. Supports deep links, redirects, nested navigators, and type-safe routes via code generation. VULK uses go_router for every Flutter project.

go_router (Flutter)

go_router is the Flutter team's recommended routing package, sitting on top of the Navigator 2.0 / Router API. It is declarative (routes are defined as a tree, not a stack), supports deep links and web URLs out of the box, handles redirects and auth guards via a single redirect: callback, and integrates with the optional go_router_builder package for compile-time type safety on route names and parameters.

VULK's Flutter generator wires go_router 14+ into every project. The agent emits a router.dart with named routes, redirect logic for protected routes (returns /login if authProvider.value == null), and ShellRoute for tab-bar layouts. URL paths are kept consistent with the web counterpart (/dashboard, /settings/profile) so the same project can be exported as Flutter web without re-routing.

See /docs/creating-projects/mobile-apps.

On this page

VULK Support

Online

Hi! How can I help you today?

Popular topics

AI support • support.vulk.dev