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

Unified Diff: sky/examples/fn/widgets/button.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 | « no previous file | sky/examples/fn/widgets/buttonbase.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/fn/widgets/button.dart
diff --git a/sky/examples/fn/widgets/button.dart b/sky/examples/fn/widgets/button.dart
index 9369a96cb4afde8167b2dd2e157038103f281c06..ac7f62d62067af015d356c474139abe36d274e07 100644
--- a/sky/examples/fn/widgets/button.dart
+++ b/sky/examples/fn/widgets/button.dart
@@ -3,6 +3,7 @@ part of widgets;
class Button extends ButtonBase {
static Style _style = new Style('''
+ transform: translateX(0);
display: inline-flex;
border-radius: 4px;
justify-content: center;
@@ -13,6 +14,7 @@ class Button extends ButtonBase {
);
static Style _highlightStyle = new Style('''
+ transform: translateX(0);
display: inline-flex;
border-radius: 4px;
justify-content: center;
@@ -36,7 +38,7 @@ class Button extends ButtonBase {
onPointerDown: _handlePointerDown,
onPointerUp: _handlePointerUp,
onPointerCancel: _handlePointerCancel,
- children: [content]
+ children: [super.render(), content]
);
}
}
« no previous file with comments | « no previous file | sky/examples/fn/widgets/buttonbase.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698