Index: sky/examples/fn/widgets/checkbox.dart |
diff --git a/sky/examples/fn/widgets/checkbox.dart b/sky/examples/fn/widgets/checkbox.dart |
index 48026475601c654b6688a106f5395a4792627477..2825498d61a63aba9d47198e8d6f9483e3537446 100644 |
--- a/sky/examples/fn/widgets/checkbox.dart |
+++ b/sky/examples/fn/widgets/checkbox.dart |
@@ -57,10 +57,6 @@ class Checkbox extends ButtonBase { |
Node render() { |
return new Container( |
style: _style, |
- onClick: _handleClick, |
- onPointerDown: _handlePointerDown, |
- onPointerUp: _handlePointerUp, |
- onPointerCancel: _handlePointerCancel, |
children: [ |
super.render(), |
new Container( |
@@ -72,7 +68,7 @@ class Checkbox extends ButtonBase { |
] |
) |
] |
- ); |
+ )..events.listen('click', _handleClick); |
} |
void _handleClick(sky.Event e) { |