forked from firka/student-legacy
navbar updates
This commit is contained in:
parent
7c9b12301b
commit
7e09fe7fff
@ -6,8 +6,10 @@ class NavigationRoute {
|
|||||||
"home",
|
"home",
|
||||||
"grades",
|
"grades",
|
||||||
"timetable",
|
"timetable",
|
||||||
"messages",
|
"notes",
|
||||||
"absences",
|
"inbox",
|
||||||
|
// "messages",
|
||||||
|
// "absences",
|
||||||
];
|
];
|
||||||
|
|
||||||
String get name => _name;
|
String get name => _name;
|
||||||
|
@ -14,10 +14,14 @@ Route navigationRouteHandler(RouteSettings settings) {
|
|||||||
return navigationPageRoute((context) => const GradesPage());
|
return navigationPageRoute((context) => const GradesPage());
|
||||||
case "timetable":
|
case "timetable":
|
||||||
return navigationPageRoute((context) => const TimetablePage());
|
return navigationPageRoute((context) => const TimetablePage());
|
||||||
case "messages":
|
case "notes":
|
||||||
return navigationPageRoute((context) => const MessagesPage());
|
return navigationPageRoute((context) => const MessagesPage());
|
||||||
case "absences":
|
case "inbox":
|
||||||
return navigationPageRoute((context) => const AbsencesPage());
|
return navigationPageRoute((context) => const AbsencesPage());
|
||||||
|
// case "messages":
|
||||||
|
// return navigationPageRoute((context) => const MessagesPage());
|
||||||
|
// case "absences":
|
||||||
|
// return navigationPageRoute((context) => const AbsencesPage());
|
||||||
default:
|
default:
|
||||||
return navigationPageRoute((context) => const HomePage());
|
return navigationPageRoute((context) => const HomePage());
|
||||||
}
|
}
|
||||||
|
@ -367,24 +367,74 @@ class NavigationScreenState extends State<NavigationScreen>
|
|||||||
),
|
),
|
||||||
NavItem(
|
NavItem(
|
||||||
title: "grades".i18n,
|
title: "grades".i18n,
|
||||||
icon: const Icon(FeatherIcons.bookmark),
|
icon: SvgPicture.asset(
|
||||||
activeIcon: const Icon(FilcIcons.gradesfill),
|
'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(
|
NavItem(
|
||||||
title: "timetable".i18n,
|
title: "timetable".i18n,
|
||||||
icon: const Icon(FeatherIcons.calendar),
|
icon: SvgPicture.asset(
|
||||||
activeIcon: const Icon(FilcIcons.timetablefill),
|
'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(
|
NavItem(
|
||||||
title: "messages".i18n,
|
title: "notes".i18n,
|
||||||
icon: const Icon(FeatherIcons.messageSquare),
|
icon: SvgPicture.asset(
|
||||||
activeIcon: const Icon(FilcIcons.messagesfill),
|
'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(
|
NavItem(
|
||||||
title: "absences".i18n,
|
title: "inbox".i18n,
|
||||||
icon: const Icon(FeatherIcons.clock),
|
icon: SvgPicture.asset(
|
||||||
activeIcon: const Icon(FilcIcons.absencesfill),
|
'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),
|
||||||
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user