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

Unified Diff: sky/framework/components/material.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 | « sky/framework/components/floating_action_button.dart ('k') | sky/framework/components/popup_menu.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/material.dart
diff --git a/sky/framework/components/material.dart b/sky/framework/components/material.dart
index 245394cae6c05413e4b26a4f93d1417e713dc317..38eeb583579773a8e48ff8b2feec02eab697c5ef 100644
--- a/sky/framework/components/material.dart
+++ b/sky/framework/components/material.dart
@@ -16,21 +16,20 @@ class Material extends Component {
new Style('box-shadow: ${Shadow[5]}'),
];
- Style style;
String inlineStyle;
List<Node> children;
int level;
Material({
- Object key,
- this.style,
- this.inlineStyle,
- this.children,
- this.level: 0 }) : super(key: key);
+ Object key,
+ this.inlineStyle,
+ this.children,
+ this.level: 0
+ }) : super(key: key);
Node build() {
return new StyleNode(
new InkWell(inlineStyle: inlineStyle, children: children),
- level > 0 ? style.extend(shadowStyle[level]) : style);
+ shadowStyle[level]);
}
}
« no previous file with comments | « sky/framework/components/floating_action_button.dart ('k') | sky/framework/components/popup_menu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698