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

Unified Diff: sky/framework/components/radio.dart

Issue 1019633004: Change how events are handled in Effen (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cr changes Created 5 years, 9 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/framework/components/menu_item.dart ('k') | sky/framework/components/scrollable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/radio.dart
diff --git a/sky/framework/components/radio.dart b/sky/framework/components/radio.dart
index 08f35dbe87d13f1e67de67a134a45470050cce8a..d820488e707138ee1d73d26d9d60add12b7ecd66 100644
--- a/sky/framework/components/radio.dart
+++ b/sky/framework/components/radio.dart
@@ -50,14 +50,15 @@ class Radio extends ButtonBase {
this.onChanged,
this.value,
this.groupValue
- }) : super(key: key) {
- events.listen('gesturetap', _handleClick);
- }
+ }) : super(key: key);
- Node build() {
- return new Material(
- style: highlight ? _highlightStyle : _style,
- children: value == groupValue ? [new Container(style: _dotStyle )] : []
+ Node buildContent() {
+ return new EventTarget(
+ new Material(
+ style: highlight ? _highlightStyle : _style,
+ children: value == groupValue ? [new Container(style: _dotStyle )] : []
+ ),
+ onGestureTap: _handleClick
);
}
« no previous file with comments | « sky/framework/components/menu_item.dart ('k') | sky/framework/components/scrollable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698