diff --git a/refilc/assets/svg/menu_icons/absences.svg b/refilc/assets/svg/menu_icons/absences.svg new file mode 100644 index 0000000..018b8f9 --- /dev/null +++ b/refilc/assets/svg/menu_icons/absences.svg @@ -0,0 +1,3 @@ + + + diff --git a/refilc/assets/svg/menu_icons/absences_selected.svg b/refilc/assets/svg/menu_icons/absences_selected.svg new file mode 100644 index 0000000..d47905c --- /dev/null +++ b/refilc/assets/svg/menu_icons/absences_selected.svg @@ -0,0 +1,3 @@ + + + diff --git a/refilc/lib/main.dart b/refilc/lib/main.dart index 922c594..818a38b 100644 --- a/refilc/lib/main.dart +++ b/refilc/lib/main.dart @@ -42,6 +42,8 @@ void main() async { const timetableSvg = SvgAssetLoader('assets/svg/menu_icons/timetable_selected.svg'); const notesSvg = SvgAssetLoader('assets/svg/menu_icons/notes_selected.svg'); + const absencesSvg = + SvgAssetLoader('assets/svg/menu_icons/absences_selected.svg'); svg.cache .putIfAbsent(todaySvg.cacheKey(null), () => todaySvg.loadBytes(null)); @@ -51,6 +53,8 @@ void main() async { timetableSvg.cacheKey(null), () => timetableSvg.loadBytes(null)); svg.cache .putIfAbsent(notesSvg.cacheKey(null), () => notesSvg.loadBytes(null)); + svg.cache.putIfAbsent( + absencesSvg.cacheKey(null), () => absencesSvg.loadBytes(null)); // Run App runApp(App( diff --git a/refilc_mobile_ui/lib/screens/navigation/navigation_screen.dart b/refilc_mobile_ui/lib/screens/navigation/navigation_screen.dart index d1b3fc2..cfef95e 100644 --- a/refilc_mobile_ui/lib/screens/navigation/navigation_screen.dart +++ b/refilc_mobile_ui/lib/screens/navigation/navigation_screen.dart @@ -1,10 +1,8 @@ // ignore_for_file: deprecated_member_use -import 'package:flutter_feather_icons/flutter_feather_icons.dart'; import 'package:flutter_svg/svg.dart'; import 'package:refilc/api/providers/update_provider.dart'; import 'package:refilc/helpers/quick_actions.dart'; -import 'package:refilc/icons/filc_icons.dart'; import 'package:refilc/models/settings.dart'; import 'package:refilc/theme/observer.dart'; import 'package:refilc/utils/navigation_service.dart'; @@ -412,27 +410,17 @@ class NavigationScreenState extends State ), NavItem( title: "absences".i18n, - icon: Icon( - FeatherIcons.clock, + icon: SvgPicture.asset( + 'assets/svg/menu_icons/absences.svg', color: Theme.of(context).colorScheme.secondary, - size: 24.0, + height: 24, ), - activeIcon: Icon( - FilcIcons.absencesfill, + activeIcon: SvgPicture.asset( + 'assets/svg/menu_icons/absences_selected.svg', color: Theme.of(context).colorScheme.secondary, - size: 24.0, + 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), - // ), ], ), ),