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

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

Issue 983903003: Re-work MaterialComponent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase 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/examples/stocks-fn/stockrow.dart ('k') | sky/framework/components/button_base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/button.dart
diff --git a/sky/framework/components/button.dart b/sky/framework/components/button.dart
index 159da90c71733248b514d9cc5264c87a02a29149..f85380c841a2a6df56e747cc6672ec5aa3a6e3b8 100644
--- a/sky/framework/components/button.dart
+++ b/sky/framework/components/button.dart
@@ -4,6 +4,7 @@
import '../fn.dart';
import 'button_base.dart';
+import 'material.dart';
class Button extends ButtonBase {
static final Style _style = new Style('''
@@ -34,9 +35,9 @@ class Button extends ButtonBase {
Button({ Object key, this.content }) : super(key: key);
Node build() {
- return new Container(
+ return new Material(
style: highlight ? _highlightStyle : _style,
- children: [super.build(), content]
+ children: [content]
);
}
}
« no previous file with comments | « sky/examples/stocks-fn/stockrow.dart ('k') | sky/framework/components/button_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698