From a7f1681902f4a04085503f9118c5cee34d44b749 Mon Sep 17 00:00:00 2001 From: Kima Date: Sun, 8 Oct 2023 11:48:09 +0200 Subject: [PATCH] someone commented birthday greeting, fuck yourself --- .../lib/pages/home/home_page.dart | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/filcnaplo_mobile_ui/lib/pages/home/home_page.dart b/filcnaplo_mobile_ui/lib/pages/home/home_page.dart index 158472c..fd8499f 100755 --- a/filcnaplo_mobile_ui/lib/pages/home/home_page.dart +++ b/filcnaplo_mobile_ui/lib/pages/home/home_page.dart @@ -112,16 +112,16 @@ class _HomePageState extends State with TickerProviderStateMixin { Future.delayed(const Duration(seconds: 1)) .then((value) => mounted ? _confettiController?.play() : null); } - // } else if (now.month == user.student?.birth.month && - // now.day == user.student?.birth.day) { - // greeting = "happybirthday"; + } else if (now.month == user.student?.birth.month && + 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); - // } + 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";