navSpecs top-level constant

  1. @visibleForTesting
List<NavSpec> const navSpecs

Canonical sidebar IA — three sections (LEARN / LIBRARY / ACCOUNT). Mirrors the design at /tmp/dutato-design/dutato-design-system/project/v2/mocks/learner-home.html. Unlike the previous flat 3-tuple list, this is sectioned and includes the new Bookmarks tile and the Tutor / Review promotions.

Implementation

@visibleForTesting
const navSpecs = <NavSpec>[
  NavSpec(
    section: NavSection.learn,
    icon: Icons.auto_stories_rounded,
    label: 'Today',
    route: '/',
  ),
  NavSpec(
    section: NavSection.learn,
    icon: Icons.psychology_rounded,
    label: 'Tutor',
    route: '/tutor',
  ),
  NavSpec(
    section: NavSection.learn,
    icon: Icons.replay_rounded,
    label: 'Review',
    route: '/review',
  ),
  NavSpec(
    section: NavSection.library,
    icon: Icons.category_rounded,
    label: 'Domains',
    route: '/domains',
  ),
  NavSpec(
    section: NavSection.library,
    icon: Icons.bookmark_rounded,
    label: 'Bookmarks',
    route: '/bookmarks',
  ),
  NavSpec(
    section: NavSection.library,
    icon: Icons.trending_up_rounded,
    label: 'Progress',
    route: '/progress',
  ),
  NavSpec(
    section: NavSection.account,
    icon: Icons.settings_rounded,
    label: 'Settings',
    route: '/settings',
  ),
  NavSpec(
    section: NavSection.account,
    icon: Icons.logout_rounded,
    label: 'Sign out',
    route: '__signout',
    signOut: true,
  ),
];