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

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

Issue 1030963005: Remove the |style| parameter from Material (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: type fix 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 | « no previous file | sky/framework/components/drawer.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 0a80bbad1ae7f1bf60e9bf84ac04a6f3d0d30d00..bcaa0ad4867fea02e6f3590bb37b0559becd2d4b 100644
--- a/sky/framework/components/button.dart
+++ b/sky/framework/components/button.dart
@@ -25,10 +25,8 @@ class Button extends Component {
Button({ Object key, this.content, this.level }) : super(key: key);
Node build() {
- return new Material(
- style: _style,
- children: [content],
- level: level
- );
+ return new StyleNode(
+ new Material(children: [content], level: level),
+ _style);
}
}
« no previous file with comments | « no previous file | sky/framework/components/drawer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698