Commit 4e6b5267 authored by Adam Barth's avatar Adam Barth

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
parent 08dbc7d6
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment