forked from firka/student-legacy
added new absences icon
This commit is contained in:
parent
8d90e81de7
commit
f0b9dfa1e6
3
refilc/assets/svg/menu_icons/absences.svg
Normal file
3
refilc/assets/svg/menu_icons/absences.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.3092 4.74286C15.2808 4.71982 15.2523 4.69698 15.2237 4.67434C14.6355 4.20948 13.9929 3.82831 13.3139 3.53725C12.8543 3.34025 12.3781 3.18453 11.8907 3.07209C11.2751 2.93003 10.6418 2.85704 10.0021 2.85714C9.35573 2.85714 8.72322 2.93382 8.11341 3.07857C7.62945 3.19345 7.15978 3.35119 6.70885 3.5475C3.7431 4.83858 1.58741 7.79773 1.50307 11.2C1.47253 12.3448 1.66981 13.4841 2.08326 14.5507C2.4967 15.6173 3.11792 16.5894 3.91022 17.4098C4.70251 18.2301 5.6498 18.882 6.69612 19.3269C7.74244 19.7718 8.86656 20.0007 10.0021 20C11.6021 20.0009 13.1698 19.5459 14.5246 18.6876C15.8794 17.8292 16.9663 16.6024 17.6601 15.1483C18.3538 13.6943 18.6262 12.0722 18.4459 10.4688C18.2696 8.90199 17.6681 7.41536 16.7084 6.17224C16.6861 6.14327 16.6635 6.11442 16.6407 6.08571L17.349 5.37143L17.3561 5.36409L17.3602 5.3599C17.5278 5.18392 17.6216 4.9492 17.6216 4.70476C17.6216 4.45495 17.5236 4.21528 17.349 4.03809L17.3395 4.02857C17.1639 3.85247 16.9262 3.75363 16.6785 3.75363C16.4308 3.75363 16.1932 3.85247 16.0175 4.02857L15.3092 4.74286ZM12.8351 0.952381C12.8351 1.05179 12.8198 1.14777 12.7914 1.23804C12.6704 1.62342 12.3116 1.90476 11.8907 1.90476H8.11341C7.69538 1.90476 7.33852 1.62713 7.21516 1.24568C7.18526 1.15319 7.16907 1.0546 7.16907 0.952381C7.16907 0.428571 7.59402 0 8.11341 0H11.8907C12.4101 0 12.8351 0.428571 12.8351 0.952381ZM15.0734 7.32808L14.6271 6.76507L14.0489 6.29578C12.9 5.36336 11.4718 4.85692 10.0021 4.85714C6.56451 4.85714 3.58913 7.75306 3.50246 11.2496L3.50237 11.2533C3.47889 12.1333 3.63057 13.0088 3.94806 13.8278C4.26553 14.6468 4.74213 15.3922 5.34882 16.0204C5.95547 16.6485 6.67986 17.1467 7.4787 17.4864C8.2775 17.826 9.13507 18.0005 10.0009 18L10.0032 18C11.2228 18.0007 12.4191 17.6539 13.4542 16.9981C14.4896 16.3422 15.3226 15.403 15.855 14.2871C16.3875 13.171 16.597 11.9248 16.4584 10.6924C16.3198 9.46 15.839 8.29392 15.0734 7.32808ZM10.002 12.381C10.5213 12.381 10.9463 11.9525 10.9463 11.4287V7.61913C10.9463 7.09532 10.5213 6.66675 10.002 6.66675C9.48257 6.66675 9.05762 7.09532 9.05762 7.61913V11.4287C9.05762 11.9525 9.48257 12.381 10.002 12.381Z" fill="#1B1B1B"/>
|
||||
</svg>
|
After Width: | Height: | Size: 2.2 KiB |
3
refilc/assets/svg/menu_icons/absences_selected.svg
Normal file
3
refilc/assets/svg/menu_icons/absences_selected.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M8.11341 1.90476H11.8907C12.4101 1.90476 12.8351 1.47619 12.8351 0.952381C12.8351 0.428571 12.4101 0 11.8907 0H8.11341C7.59402 0 7.16907 0.428571 7.16907 0.952381C7.16907 1.47619 7.59402 1.90476 8.11341 1.90476ZM16.6407 6.08571L17.349 5.37143C17.5236 5.19424 17.6216 4.95458 17.6216 4.70476C17.6216 4.45495 17.5236 4.21528 17.349 4.03809L17.3395 4.02857C17.1639 3.85247 16.9262 3.75363 16.6785 3.75363C16.4308 3.75363 16.1932 3.85247 16.0175 4.02857L15.3092 4.74286C13.8052 3.52221 11.9326 2.85685 10.0021 2.85714C5.46927 2.85714 1.61639 6.62857 1.50307 11.2C1.47253 12.3448 1.66981 13.4841 2.08326 14.5507C2.4967 15.6173 3.11792 16.5894 3.91022 17.4098C4.70251 18.2301 5.6498 18.882 6.69612 19.3269C7.74244 19.7718 8.86656 20.0007 10.0021 20C11.6021 20.0009 13.1698 19.5459 14.5246 18.6876C15.8794 17.8292 16.9663 16.6024 17.6601 15.1483C18.3538 13.6943 18.6262 12.0722 18.4459 10.4688C18.2655 8.86547 17.6398 7.3461 16.6407 6.08571ZM10.9464 11.4286C10.9464 11.9524 10.5215 12.381 10.0021 12.381C9.48269 12.381 9.05774 11.9524 9.05774 11.4286V7.61905C9.05774 7.09524 9.48269 6.66667 10.0021 6.66667C10.5215 6.66667 10.9464 7.09524 10.9464 7.61905V11.4286Z" fill="#1B1B1B"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
@ -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(
|
||||
|
@ -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<NavigationScreen>
|
||||
),
|
||||
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),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user