config/routes library
Classes
- Responsive shell: NavigationRail on wide screens, NavigationBar on narrow.
Constants
- desktopBreakpoint → const double
- Desktop breakpoint — matches the shell's NavigationRail threshold in routes.dart.
- Navigation destinations shared between NavigationBar and NavigationRail.
Properties
- router → GoRouter
-
The active router instance, set by createRouter.
Used by static callbacks (e.g. notification tap handler) that cannot
receive the instance directly.
no setter
Functions
-
authRedirect(
Session? session, GoRouterState state, {String? lastMode, List< String> ? adminOrgIds, String? lastActiveOrgId}) → String? - Determines the redirect path based on authentication state, MFA level, and (optionally) the user's last-used mode.
-
createRouter(
{required bool supabaseReady, VoidCallback? onSetupComplete}) → GoRouter -
Creates the app router. When
supabaseReadyis false, all routes redirect to/setupand the auth listener is not attached.