diff --git a/filcnaplo/lib/ui/filter/widgets.dart b/filcnaplo/lib/ui/filter/widgets.dart index 4135079..9632adf 100644 --- a/filcnaplo/lib/ui/filter/widgets.dart +++ b/filcnaplo/lib/ui/filter/widgets.dart @@ -151,8 +151,9 @@ Future> getFilterWidgets(FilterType activeData, // Updates case FilterType.updates: - if (updateProvider.available) + if (updateProvider.available) { items = [update_filter.getWidget(updateProvider.releases.first)]; + } break; // Missed Exams diff --git a/filcnaplo_mobile_ui/lib/pages/home/home_page.dart b/filcnaplo_mobile_ui/lib/pages/home/home_page.dart index 816206d..9c15899 100755 --- a/filcnaplo_mobile_ui/lib/pages/home/home_page.dart +++ b/filcnaplo_mobile_ui/lib/pages/home/home_page.dart @@ -108,6 +108,16 @@ class _HomePageState extends State with TickerProviderStateMixin { now.day == user.student?.birth.day) { greeting = "happybirthday"; + if (NavigationScreen.of(context)?.init("confetti") ?? false) { + _confettiController = + ConfettiController(duration: const Duration(seconds: 3)); + Future.delayed(const Duration(seconds: 1)) + .then((value) => mounted ? _confettiController?.play() : null); + } + } else if (now.isAfter(DateTime(now.year, DateTime.may, 28)) && + now.isBefore(DateTime(now.year, DateTime.may, 30))) { + greeting = "refilcopen"; + if (NavigationScreen.of(context)?.init("confetti") ?? false) { _confettiController = ConfettiController(duration: const Duration(seconds: 3)); diff --git a/filcnaplo_mobile_ui/lib/pages/home/home_page.i18n.dart b/filcnaplo_mobile_ui/lib/pages/home/home_page.i18n.dart index 47ed140..6123580 100755 --- a/filcnaplo_mobile_ui/lib/pages/home/home_page.i18n.dart +++ b/filcnaplo_mobile_ui/lib/pages/home/home_page.i18n.dart @@ -11,13 +11,15 @@ extension Localization on String { "happybirthday": "🎂 Happy birthday, %s!", "merryxmas": "🎄 Merry Christmas, %s!", "happynewyear": "🎉 Happy New Year, %s!", + "refilcopen": "🎈 Welcome in reFilc, %s!", "empty": "Nothing to see here.", "All": "All", "Grades": "Grades", "Messages": "Messages", "Absences": "Absences", "update_available": "Update Available", - "missed_exams": "You missed %s exams this week.".one("You missed an exam this week."), + "missed_exams": "You missed %s exams this week." + .one("You missed an exam this week."), "missed_exam_contact": "Contact %s, to resolve it!", }, "hu_hu": { @@ -28,13 +30,15 @@ extension Localization on String { "happybirthday": "🎂 Boldog születésnapot, %s!", "merryxmas": "🎄 Boldog Karácsonyt, %s!", "happynewyear": "🎉 Boldog új évet, %s!", + "refilcopen": "🎈 Üdv a reFilc-ben, %s!", "empty": "Nincs itt semmi látnivaló.", "All": "Összes", "Grades": "Jegyek", "Messages": "Üzenetek", "Absences": "Hiányok", "update_available": "Frissítés elérhető", - "missed_exams": "Ezen a héten hiányoztál %s dolgozatról.".one("Ezen a héten hiányoztál egy dolgozatról."), + "missed_exams": "Ezen a héten hiányoztál %s dolgozatról." + .one("Ezen a héten hiányoztál egy dolgozatról."), "missed_exam_contact": "Keresd %s-t, ha pótolni szeretnéd!", }, "de_de": { @@ -45,13 +49,15 @@ extension Localization on String { "happybirthday": "🎂 Alles Gute zum Geburtstag, %s!", "merryxmas": "🎄 Frohe Weihnachten, %s!", "happynewyear": "🎉 Frohes neues Jahr, %s!", + "refilcopen": "🎈 Willkommen bei reFilc, %s!", "empty": "Hier gibt es nichts zu sehen.", "All": "Alles", "Grades": "Noten", "Messages": "Nachrichten", "Absences": "Fehlen", "update_available": "Update verfügbar", - "missed_exams": "Diese Woche haben Sie %s Prüfungen verpasst.".one("Diese Woche haben Sie eine Prüfung verpasst."), + "missed_exams": "Diese Woche haben Sie %s Prüfungen verpasst." + .one("Diese Woche haben Sie eine Prüfung verpasst."), "missed_exam_contact": "Wenden Sie sich an %s, um sie zu erneuern!", }, };