From 8117fc8250eeacff958024d9e282e262205435a7 Mon Sep 17 00:00:00 2001 From: nacho-alesina05 Date: Mon, 28 Oct 2024 15:04:14 -0300 Subject: [PATCH] feat: halloween gesture feedback --- lib/ui/game_screen/gesture_feedback.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/ui/game_screen/gesture_feedback.dart b/lib/ui/game_screen/gesture_feedback.dart index ebf8c29..59a3714 100644 --- a/lib/ui/game_screen/gesture_feedback.dart +++ b/lib/ui/game_screen/gesture_feedback.dart @@ -141,10 +141,17 @@ class _GestureWidget extends StatelessWidget { final double size; @override - Widget build(BuildContext context) => Text( + Widget build(BuildContext context) { + if (Config.halloweenMode && + currentGesture?.gesture.halloweenEmoji != null) { + return currentGesture!.gesture.halloweenEmoji!.image(); + } else { + return Text( currentGesture?.gesture.emoji ?? '', style: context.theme.textStyles.headlineLarge!.copyWith( fontSize: size / 1.6, ), ); + } + } }