Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: sky/sdk/lib/widgets/drawer.dart

Issue 1193513007: Rename EventListenerNode to Listener (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/lib/widgets/dialog.dart ('k') | sky/sdk/lib/widgets/icon_button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/drawer.dart
diff --git a/sky/sdk/lib/widgets/drawer.dart b/sky/sdk/lib/widgets/drawer.dart
index 86182a7167bf7721649e5aa306e6d55026ea150f..11a161ce52efaffc06e700cdcbc48ce7c7369816 100644
--- a/sky/sdk/lib/widgets/drawer.dart
+++ b/sky/sdk/lib/widgets/drawer.dart
@@ -139,8 +139,8 @@ class Drawer extends AnimatedComponent {
double scaler = _position / _kWidth + 1;
Color maskColor = new Color.fromARGB((0x7F * scaler).floor(), 0, 0, 0);
- var mask = new EventListenerNode(
- new Container(decoration: new BoxDecoration(backgroundColor: maskColor)),
+ var mask = new Listener(
+ child: new Container(decoration: new BoxDecoration(backgroundColor: maskColor)),
onGestureTap: controller.handleMaskTap,
onGestureFlingStart: controller.handleFlingStart
);
@@ -154,8 +154,8 @@ class Drawer extends AnimatedComponent {
child: new Block(children)
);
- return new EventListenerNode(
- new Stack([ mask, content ]),
+ return new Listener(
+ child: new Stack([ mask, content ]),
onPointerDown: controller.handlePointerDown,
onPointerMove: controller.handlePointerMove,
onPointerUp: controller.handlePointerUp,
« no previous file with comments | « sky/sdk/lib/widgets/dialog.dart ('k') | sky/sdk/lib/widgets/icon_button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698