From e25a2bde690dc4374d74a43b6da9c036cc16aff6 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Mon, 4 May 2026 15:01:22 +0200 Subject: [PATCH] Added delay before reversing animation --- lib/presentation/widgets/buttons/main_menu_button.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/presentation/widgets/buttons/main_menu_button.dart b/lib/presentation/widgets/buttons/main_menu_button.dart index c583456..5eb76f1 100644 --- a/lib/presentation/widgets/buttons/main_menu_button.dart +++ b/lib/presentation/widgets/buttons/main_menu_button.dart @@ -53,10 +53,11 @@ class _MainMenuButtonState extends State _animationController.forward(); }, onTapUp: (_) async { - await _animationController.reverse(); if (mounted) { widget.onPressed(); } + await Future.delayed(const Duration(milliseconds: 100)); + await _animationController.reverse(); }, onTapCancel: () { _animationController.reverse();