Merge pull request #648 from abarth/icon_button

Makes it easier to hit IconButton
This commit is contained in:
Adam Barth 2015-11-30 18:34:54 -08:00
commit c19102a3ef

View File

@ -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(