From f5fbb3ecc4326fcd7f5085da6114833cdeec6ced Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 13 May 2026 13:48:44 +0200 Subject: [PATCH] fix: long press feedback on every call --- lib/presentation/widgets/buttons/main_menu_button.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/presentation/widgets/buttons/main_menu_button.dart b/lib/presentation/widgets/buttons/main_menu_button.dart index 497fea0..c300eeb 100644 --- a/lib/presentation/widgets/buttons/main_menu_button.dart +++ b/lib/presentation/widgets/buttons/main_menu_button.dart @@ -70,11 +70,14 @@ class _MainMenuButtonState extends State const Duration(milliseconds: 400), () async { _isLongPressing = true; - await HapticFeedback.vibrate(); widget.onLongPressed?.call(); + await HapticFeedback.heavyImpact(); _repeatTimer = Timer.periodic( const Duration(milliseconds: 250), - (_) => widget.onLongPressed?.call(), + (_) async { + widget.onLongPressed?.call(); + await HapticFeedback.heavyImpact(); + }, ); }, );