appPages top-level property
final
The navigation-rail pages in rail order; routing, the layout test and the web check read this table.
Implementation
final List<AppPage> appPages = <AppPage>[
AppPage(
route: '/stream',
icon: Icons.camera_enhance_outlined,
selectedIcon: Icons.camera_enhance,
label: (l10n) => l10n.stream,
build: (footer, app, blog) => StreamPage(
footer: footer,
appAttributes: app,
webrtcSettings: blog.webrtcSettings,
),
),
AppPage(
route: '/cameraSettings',
icon: Icons.tune_outlined,
selectedIcon: Icons.tune,
label: (l10n) => l10n.cameraSettingsNav,
build: (footer, app, blog) =>
CameraSettingsPage(footer: footer, appAttributes: app),
),
AppPage(
route: '/device',
icon: Icons.usb_outlined,
selectedIcon: Icons.usb,
label: (l10n) => l10n.deviceNav,
build: (footer, app, blog) =>
DevicePage(footer: footer, appAttributes: app),
),
AppPage(
route: '/aiPlayground',
icon: Icons.smart_toy_outlined,
selectedIcon: Icons.smart_toy,
label: (l10n) => l10n.aiPlaygroundNav,
build: (footer, app, blog) =>
AiPlaygroundPage(footer: footer, appAttributes: app),
),
AppPage(
route: '/landingPage',
icon: Icons.house_outlined,
selectedIcon: Icons.house,
label: (l10n) => l10n.homepage,
build: (footer, app, blog) => LandingPage(
footer: footer,
appAttributes: app,
blogDependentAppAttributes: blog,
),
),
AppPage(
route: '/aboutMe',
icon: Icons.person_outlined,
selectedIcon: Icons.person,
label: (l10n) => l10n.aboutme,
build: (footer, app, blog) =>
AboutMePage(footer: footer, appAttributes: app),
),
];