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

Unified Diff: sky/examples/fn/widgets/checkbox.dart

Issue 975863003: Don't hardcode the list of events types in fn (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: More careful event syncing Created 5 years, 10 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/examples/fn/widgets/buttonbase.dart ('k') | sky/examples/fn/widgets/drawer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « sky/examples/fn/widgets/buttonbase.dart ('k') | sky/examples/fn/widgets/drawer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698