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(
|
return GestureDetector(
|
||||||
behavior: HitTestBehavior.translucent,
|
|
||||||
onDoubleTap: maximize,
|
|
||||||
onPanStart: (_) => windowManager.startDragging(),
|
onPanStart: (_) => windowManager.startDragging(),
|
||||||
child: AppBar(
|
child: AppBar(
|
||||||
leading: leading,
|
leading: leading,
|
||||||
backgroundColor: backgroundColor,
|
backgroundColor: backgroundColor,
|
||||||
scrolledUnderElevation: scrolledUnderElevation,
|
scrolledUnderElevation: scrolledUnderElevation,
|
||||||
actionsPadding: const EdgeInsets.symmetric(horizontal: 8),
|
actionsPadding: const EdgeInsets.symmetric(horizontal: 8),
|
||||||
title: title,
|
title: IgnorePointer(child: title),
|
||||||
|
flexibleSpace: GestureDetector(onDoubleTap: maximize),
|
||||||
actions: [
|
actions: [
|
||||||
...actions,
|
...actions,
|
||||||
if (!(Platform.isAndroid || Platform.isIOS)) ...[
|
if (!(Platform.isAndroid || Platform.isIOS)) ...[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue