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

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

Issue 1037673002: Disentangle Material and InkSplash (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 38eeb583579773a8e48ff8b2feec02eab697c5ef..88ba6e30be4a2d4c07b6306606ead7f31fcd0ee5 100644
--- a/sky/framework/components/material.dart
+++ b/sky/framework/components/material.dart
@@ -7,7 +7,7 @@ import '../theme/shadows.dart';
import 'ink_well.dart';
class Material extends Component {
- static final List<Style> shadowStyle = [
+ static final List<Style> _shadowStyle = [
null,
new Style('box-shadow: ${Shadow[1]}'),
new Style('box-shadow: ${Shadow[2]}'),
@@ -16,20 +16,12 @@ class Material extends Component {
new Style('box-shadow: ${Shadow[5]}'),
];
- String inlineStyle;
- List<Node> children;
+ Node content;
int level;
- Material({
- Object key,
- this.inlineStyle,
- this.children,
- this.level: 0
- }) : super(key: key);
+ Material({ Object key, this.content, this.level: 0 }) : super(key: key);
Node build() {
- return new StyleNode(
- new InkWell(inlineStyle: inlineStyle, children: children),
- shadowStyle[level]);
+ return new StyleNode(content, _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