Index: sky/examples/fn/widgets/buttonbase.dart |
diff --git a/sky/examples/fn/widgets/buttonbase.dart b/sky/examples/fn/widgets/buttonbase.dart |
index 461b44d49ab95c7c44e16de1e133f5df246ff16d..a69202280188acaf268d3e7b3b446d76bc401dbd 100644 |
--- a/sky/examples/fn/widgets/buttonbase.dart |
+++ b/sky/examples/fn/widgets/buttonbase.dart |
@@ -4,7 +4,11 @@ abstract class ButtonBase extends MaterialComponent { |
bool _highlight = false; |
- ButtonBase({ Object key }) : super(key: key); |
+ ButtonBase({ Object key }) : super(key: key) { |
+ events.listen('pointerdown', _handlePointerDown); |
+ events.listen('pointerup', _handlePointerUp); |
+ events.listen('pointercancel', _handlePointerCancel); |
+ } |
void _handlePointerDown(_) { |
setState(() { |