浏览代码

Merge pull request #586 from tsuiyuenhong/bugfix/fix_create_button_hittest_bug

bugfix: click on the edge of the `add_button` that create the document does not respond to event
Nathan.fooo 2 年之前
父节点
当前提交
d090a813a9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/add_button.dart

+ 1 - 0
frontend/app_flowy/lib/workspace/presentation/home/menu/app/header/add_button.dart

@@ -83,6 +83,7 @@ class CreateItem extends StatelessWidget {
     return FlowyHover(
       style: config,
       child: GestureDetector(
+        behavior: HitTestBehavior.opaque,
         onTap: () => onSelected(pluginBuilder),
         child: FlowyText.medium(
           pluginBuilder.menuName,