From 4f0379bdd75d9f169aad1ed9e4562268d0ee81d5 Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Thu, 1 Feb 2024 20:53:21 +0800 Subject: [PATCH] fix: size of hitbox in app bar button (#4575) --- .../lib/mobile/presentation/base/app_bar_actions.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/base/app_bar_actions.dart b/frontend/appflowy_flutter/lib/mobile/presentation/base/app_bar_actions.dart index 8e71db8768..ebca534dab 100644 --- a/frontend/appflowy_flutter/lib/mobile/presentation/base/app_bar_actions.dart +++ b/frontend/appflowy_flutter/lib/mobile/presentation/base/app_bar_actions.dart @@ -144,8 +144,6 @@ class AppBarButton extends StatelessWidget { required this.child, }); - static const defaultWidth = 40.0; - final VoidCallback onTap; final Widget child; final bool isActionButton; @@ -153,6 +151,7 @@ class AppBarButton extends StatelessWidget { @override Widget build(BuildContext context) { return GestureDetector( + behavior: HitTestBehavior.opaque, onTap: onTap, child: Padding( padding: EdgeInsets.only(