Don't wait for potential double tap for appbar actions, makes button taps more responsive in appbar
This commit is contained in:
parent
32dfba178a
commit
ffe879680d
1 changed files with 2 additions and 3 deletions
|
|
@ -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)) ...[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue