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

Unified Diff: sky/examples/fn/widgets/radio.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/menuitem.dart ('k') | sky/examples/stocks-fn/stocksapp.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn/widgets/radio.dart
diff --git a/sky/examples/fn/widgets/radio.dart b/sky/examples/fn/widgets/radio.dart
index fe907929e0b544d07c64029f2b9c3f4576e03f6b..c5c1b41f806e3c14ad76660099af10a97fccef81 100644
--- a/sky/examples/fn/widgets/radio.dart
+++ b/sky/examples/fn/widgets/radio.dart
@@ -48,16 +48,12 @@ class Radio extends ButtonBase {
Node render() {
return new Container(
style: _highlight ? _highlightStyle : _style,
- onClick: _handleClick,
- onPointerDown: _handlePointerDown,
- onPointerUp: _handlePointerUp,
- onPointerCancel: _handlePointerCancel,
children: value == groupValue ?
[super.render(), new Container( style : _dotStyle )] : [super.render()]
- );
+ )..events.listen('click', _handleClick);
}
- void _handleClick(sky.Event e) {
+ void _handleClick(_) {
onChanged(value);
}
}
« no previous file with comments | « sky/examples/fn/widgets/menuitem.dart ('k') | sky/examples/stocks-fn/stocksapp.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698