diff --git a/lib/widgets/custom_appbar.dart b/lib/widgets/custom_appbar.dart index ab08947c..d63d85c8 100644 --- a/lib/widgets/custom_appbar.dart +++ b/lib/widgets/custom_appbar.dart @@ -25,29 +25,38 @@ class CustomAppBar extends AppBar { leadingWidth: 460, centerTitle: true, actions: [ - DecoratedMinimizeButton( - type: buttonType, - onPressed: () async => await windowManager.minimize(), + InkWell( + onTap: () {}, + child: DecoratedMinimizeButton( + type: buttonType, + onPressed: () async => await windowManager.minimize(), + ), ), - DecoratedMaximizeButton( - type: buttonType, - onPressed: () async { - if (await windowManager.isMaximized()) { - windowManager.unmaximize(); - } else { - windowManager.maximize(); - } - }, + InkWell( + onTap: () {}, + child: DecoratedMaximizeButton( + type: buttonType, + onPressed: () async { + if (await windowManager.isMaximized()) { + windowManager.unmaximize(); + } else { + windowManager.maximize(); + } + }, + ), ), - DecoratedCloseButton( - type: buttonType, - onPressed: () async { - if (onWindowClose == null) { - await windowManager.close(); - } else { - onWindowClose.call(); - } - }, + InkWell( + onTap: () {}, + child: DecoratedCloseButton( + type: buttonType, + onPressed: () async { + if (onWindowClose == null) { + await windowManager.close(); + } else { + onWindowClose.call(); + } + }, + ), ), ], title: _WindowDragArea(