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

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

Issue 974903005: attempt at making menuitems react (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rationalise my local client and upload the result 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/fn/widgets/widgets.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 bdcc5b1c1364b1e01458d941110114c0f468eaf2..fe907929e0b544d07c64029f2b9c3f4576e03f6b 100644
--- a/sky/examples/fn/widgets/radio.dart
+++ b/sky/examples/fn/widgets/radio.dart
@@ -7,6 +7,7 @@ class Radio extends ButtonBase {
ValueChanged onChanged;
static Style _style = new Style('''
+ transform: translateX(0);
display: inline-block;
-webkit-user-select: none;
width: 14px;
@@ -17,6 +18,7 @@ class Radio extends ButtonBase {
);
static Style _highlightStyle = new Style('''
+ transform: translateX(0);
display: inline-block;
-webkit-user-select: none;
width: 14px;
@@ -51,7 +53,7 @@ class Radio extends ButtonBase {
onPointerUp: _handlePointerUp,
onPointerCancel: _handlePointerCancel,
children: value == groupValue ?
- [new Container( style : _dotStyle )] : null
+ [super.render(), new Container( style : _dotStyle )] : [super.render()]
);
}
« no previous file with comments | « sky/examples/fn/widgets/menuitem.dart ('k') | sky/examples/fn/widgets/widgets.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698