Don't wait for potential double tap for appbar actions, makes button taps more responsive in appbar

This commit is contained in:
Henry Hiles 2026-03-24 15:34:26 -04:00
commit ffe879680d
No known key found for this signature in database

View file

@ -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)) ...[