From ffe879680d749f7fa4fec51d5a8955b92bd4cb30 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 24 Mar 2026 15:34:26 -0400 Subject: [PATCH] Don't wait for potential double tap for appbar actions, makes button taps more responsive in appbar --- lib/widgets/appbar.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/widgets/appbar.dart b/lib/widgets/appbar.dart index 5b14244..aae6c13 100644 --- a/lib/widgets/appbar.dart +++ b/lib/widgets/appbar.dart @@ -35,15 +35,14 @@ class Appbar extends StatelessWidget implements PreferredSizeWidget { } return GestureDetector( - behavior: HitTestBehavior.translucent, - onDoubleTap: maximize, onPanStart: (_) => windowManager.startDragging(), child: AppBar( leading: leading, backgroundColor: backgroundColor, scrolledUnderElevation: scrolledUnderElevation, actionsPadding: const EdgeInsets.symmetric(horizontal: 8), - title: title, + title: IgnorePointer(child: title), + flexibleSpace: GestureDetector(onDoubleTap: maximize), actions: [ ...actions, if (!(Platform.isAndroid || Platform.isIOS)) ...[