originalItems top-level property
final
Implementation
final List<NavigationPaneItem> originalItems = [
PaneItem(
key: const Key('/'),
icon: const Icon(FluentIcons.home),
title: Text('homepage-text'.i18n()),
body: const SizedBox.shrink(),
onTap: () {
if (router.location != '/') router.pushNamed('home');
},
),
PaneItem(
key: const Key('/quickactions'),
icon: const Icon(FluentIcons.file_code),
title: Text('managequickactions-text'.i18n()),
body: const SizedBox.shrink(),
onTap: () {
if (router.location != '/quickactions') {
router.pushNamed('quickactions');
}
},
),
PaneItem(
key: const Key('/templates'),
icon: const Icon(FluentIcons.file_template),
title: Text('templates-text'.i18n()),
body: const SizedBox.shrink(),
onTap: () {
if (router.location != '/templates') {
router.pushNamed('templates');
}
},
),
PaneItem(
key: const Key('/addinstance'),
icon: const Icon(FluentIcons.add),
title: Text('addinstance-text'.i18n()),
body: const SizedBox.shrink(),
onTap: () {
createDialog();
},
),
];