vgv-navigation
Navigation
Routing and navigation best practices for Flutter applications using GoRouter, the Flutter team's recommended routing package built on the Navigator 2.0 API.
Core Standards
Apply these standards to ALL navigation work:
- Use
package:go_routerfor all navigation — never raw Navigator 2.0 or Navigator 1.0 push/pop - Use
@TypedGoRouteannotations for type-safe routes — never raw string paths in route definitions - Prefer
go()overpush()— usepush()only when expecting return data from the destination - Never use the
extraparameter — it breaks deep linking and does not work on the web - Hierarchical sub-routes for proper back navigation — structure routes as parent-child trees, not flat lists
- Hyphens for URL word separation — never underscores or camelCase in URL paths
- Navigate by route name, not raw path strings — use named route navigation to decouple from path changes
- Use
BuildContextextensions for navigation — prefercontext.goNamed()overGoRouter.of(context).goNamed()
Route Organization
More from verygoodopensource/very_good_ai_flutter_plugin
vgv-static-security
>
26vgv-accessibility
Flutter accessibility auditing and remediation with WCAG 2.1 level selection (A, AA, AAA) across mobile, desktop, and web platforms. Begins by asking the WCAG conformance level and target platform(s) before applying level-appropriate, platform-aware criteria.
7vgv-material-theming
Best practices for Flutter theming using Material 3.
7vgv-internationalization
Best practices for internationalization (i18n) and localization (l10n) in Flutter.
7vgv-bloc
Best practices for Bloc state management in Flutter/Dart. Use when writing, modifying, or reviewing code that uses package:bloc, package:flutter_bloc, or package:bloc_test.
5vgv-ui-package
Best practices for building a Flutter UI package on top of Material — custom components, ThemeExtension-based theming, consistent APIs, and widget tests. Supports app_ui_package template.
5