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

Unified Diff: sky/sdk/lib/framework/components2/material.dart

Issue 1147143005: Make Drawer in components2 work (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 7 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/sdk/lib/framework/components2/drawer.dart ('k') | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/material.dart
diff --git a/sky/sdk/lib/framework/components2/material.dart b/sky/sdk/lib/framework/components2/material.dart
index 6371e29381ca49a75b2803a09b3b3c7bd6867a44..8fe042285cd2b87ce627a03d812355e172bc8ea6 100644
--- a/sky/sdk/lib/framework/components2/material.dart
+++ b/sky/sdk/lib/framework/components2/material.dart
@@ -6,14 +6,14 @@ import '../fn2.dart';
import '../theme/shadows.dart';
class Material extends Component {
- static final List<Style> _shadowStyle = [
- null,
- new Style('box-shadow: ${Shadow[1]}'),
- new Style('box-shadow: ${Shadow[2]}'),
- new Style('box-shadow: ${Shadow[3]}'),
- new Style('box-shadow: ${Shadow[4]}'),
- new Style('box-shadow: ${Shadow[5]}'),
- ];
+ // static final List<Style> _shadowStyle = [
+ // null,
+ // new Style('box-shadow: ${Shadow[1]}'),
+ // new Style('box-shadow: ${Shadow[2]}'),
+ // new Style('box-shadow: ${Shadow[3]}'),
+ // new Style('box-shadow: ${Shadow[4]}'),
+ // new Style('box-shadow: ${Shadow[5]}'),
+ // ];
UINode content;
int level;
@@ -21,6 +21,8 @@ class Material extends Component {
Material({ Object key, this.content, this.level: 0 }) : super(key: key);
UINode build() {
- return new StyleNode(content, _shadowStyle[level]);
+ // TODO(eseidel): Add a shadow.
+ // return new StyleNode(content, _shadowStyle[level]);
+ return content;
}
}
« no previous file with comments | « sky/sdk/lib/framework/components2/drawer.dart ('k') | sky/sdk/lib/framework/fn2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698