Skip to content

Commit

Permalink
feat: halloween gesture feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho-alesina05 committed Oct 28, 2024
1 parent 2110d49 commit 8117fc8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/ui/game_screen/gesture_feedback.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
);
}
}
}

0 comments on commit 8117fc8

Please sign in to comment.