presentation/widgets/org_shell_scaffold library

Classes

OrgShellScaffold Screens & Widgets
Responsive shell for admin/manager org mode. Mirrors the personal ScaffoldWithNavBar layout but routes to /org/:orgId/* destinations.

Constants

orgNavDestinations → const List<({IconData icon, String label})>
Nav destinations of the org admin shell. Label + icon mirror the personal shell's navDestinations; 5 entries for Dashboard, Members, Assignments, Analytics, and Org Settings. Shared with OrgDetailScaffold so detail pages render an identical bottom-nav / rail.

Functions

calculateOrgSelectedIndex(BuildContext context, String? orgId) int?
Returns the selected index for the org bottom-nav / rail, or null when the current route is a detail screen (/org/:orgId/notifications, /org/:orgId/teams, etc.) that doesn't correspond to any of the five shell destinations. Callers that need a non-null value (e.g. the main shell) should fall back to 0 (Dashboard).
extractOrgId(BuildContext context) String?
Pulls :orgId out of the current route. Returns null on /org (the redirect route that resolves to /org/:lastActiveOrgId).
onOrgNavTapped(int index, BuildContext context, String? orgId) → void
Routes to the requested top-level org destination. Index must be 0..4.