From 4e6b5267d394c22b4b2d6f3fe3b01d1af3d0c48f Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 30 Nov 2015 17:38:26 -0800 Subject: [PATCH] Makes it easier to hit IconButton The right fix here is to use a radial reaction, but for now we can just make the gesture detector including the padding acround the icon in its hit test region. Fixes #575 --- packages/flutter/lib/src/material/icon_button.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/flutter/lib/src/material/icon_button.dart b/packages/flutter/lib/src/material/icon_button.dart index 087c28429cb..fd187a7391e 100644 --- a/packages/flutter/lib/src/material/icon_button.dart +++ b/packages/flutter/lib/src/material/icon_button.dart @@ -26,6 +26,7 @@ class IconButton extends StatelessComponent { // 8.0 pixel padding as well as the icon. return new GestureDetector( onTap: onPressed, + behavior: HitTestBehavior.opaque, child: new Padding( padding: const EdgeDims.all(8.0), child: new Icon(