mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #648 from abarth/icon_button
Makes it easier to hit IconButton
This commit is contained in:
commit
c19102a3ef
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user