navbar updates

This commit is contained in:
Márton Kiss 2024-03-04 12:04:52 +01:00 committed by GitHub
parent 7c9b12301b
commit 7e09fe7fff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 70 additions and 14 deletions

View File

@ -6,8 +6,10 @@ class NavigationRoute {
"home",
"grades",
"timetable",
"messages",
"absences",
"notes",
"inbox",
// "messages",
// "absences",
];
String get name => _name;

View File

@ -14,10 +14,14 @@ Route navigationRouteHandler(RouteSettings settings) {
return navigationPageRoute((context) => const GradesPage());
case "timetable":
return navigationPageRoute((context) => const TimetablePage());
case "messages":
case "notes":
return navigationPageRoute((context) => const MessagesPage());
case "absences":
case "inbox":
return navigationPageRoute((context) => const AbsencesPage());
// case "messages":
// return navigationPageRoute((context) => const MessagesPage());
// case "absences":
// return navigationPageRoute((context) => const AbsencesPage());
default:
return navigationPageRoute((context) => const HomePage());
}

View File

@ -367,24 +367,74 @@ class NavigationScreenState extends State<NavigationScreen>
),
NavItem(
title: "grades".i18n,
icon: const Icon(FeatherIcons.bookmark),
activeIcon: const Icon(FilcIcons.gradesfill),
icon: SvgPicture.asset(
'assets/svg/menu_icons/grades.svg',
color:
Theme.of(context).colorScheme.secondary,
height: 24,
),
activeIcon: SvgPicture.asset(
'assets/svg/menu_icons/grades_selected.svg',
color:
Theme.of(context).colorScheme.secondary,
height: 24,
),
),
NavItem(
title: "timetable".i18n,
icon: const Icon(FeatherIcons.calendar),
activeIcon: const Icon(FilcIcons.timetablefill),
icon: SvgPicture.asset(
'assets/svg/menu_icons/timetable.svg',
color:
Theme.of(context).colorScheme.secondary,
height: 24,
),
activeIcon: SvgPicture.asset(
'assets/svg/menu_icons/timetable_selected.svg',
color:
Theme.of(context).colorScheme.secondary,
height: 24,
),
),
NavItem(
title: "messages".i18n,
icon: const Icon(FeatherIcons.messageSquare),
activeIcon: const Icon(FilcIcons.messagesfill),
title: "notes".i18n,
icon: SvgPicture.asset(
'assets/svg/menu_icons/notes.svg',
color:
Theme.of(context).colorScheme.secondary,
height: 24,
),
activeIcon: SvgPicture.asset(
'assets/svg/menu_icons/notes_selected.svg',
color:
Theme.of(context).colorScheme.secondary,
height: 24,
),
),
NavItem(
title: "absences".i18n,
icon: const Icon(FeatherIcons.clock),
activeIcon: const Icon(FilcIcons.absencesfill),
title: "inbox".i18n,
icon: SvgPicture.asset(
'assets/svg/menu_icons/inbox.svg',
color:
Theme.of(context).colorScheme.secondary,
height: 24,
),
activeIcon: SvgPicture.asset(
'assets/svg/menu_icons/inbox_selected.svg',
color:
Theme.of(context).colorScheme.secondary,
height: 24,
),
),
// NavItem(
// title: "messages".i18n,
// icon: const Icon(FeatherIcons.messageSquare),
// activeIcon: const Icon(FilcIcons.messagesfill),
// ),
// NavItem(
// title: "absences".i18n,
// icon: const Icon(FeatherIcons.clock),
// activeIcon: const Icon(FilcIcons.absencesfill),
// ),
],
),
),