Merge pull request #648 from abarth/icon_button
Makes it easier to hit IconButton
This commit is contained in:
@@ -26,6 +26,7 @@ class IconButton extends StatelessComponent {
|
|||||||
// 8.0 pixel padding as well as the icon.
|
// 8.0 pixel padding as well as the icon.
|
||||||
return new GestureDetector(
|
return new GestureDetector(
|
||||||
onTap: onPressed,
|
onTap: onPressed,
|
||||||
|
behavior: HitTestBehavior.opaque,
|
||||||
child: new Padding(
|
child: new Padding(
|
||||||
padding: const EdgeDims.all(8.0),
|
padding: const EdgeDims.all(8.0),
|
||||||
child: new Icon(
|
child: new Icon(
|
||||||
|
|||||||
Reference in New Issue
Block a user