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

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

Issue 1177383006: Rename all the things (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix imports Created 5 years, 6 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/widgets/ink_well.dart ('k') | sky/sdk/lib/framework/widgets/menu_divider.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/widgets/material.dart
diff --git a/sky/sdk/lib/framework/widgets/material.dart b/sky/sdk/lib/framework/widgets/material.dart
deleted file mode 100644
index 2f76fcc959a1594b6c6909b6dd1f04bd3340ca08..0000000000000000000000000000000000000000
--- a/sky/sdk/lib/framework/widgets/material.dart
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-import '../painting/box_painter.dart';
-import '../theme2/colors.dart';
-import '../theme2/edges.dart';
-import '../theme2/shadows.dart';
-import 'basic.dart';
-
-class Material extends Component {
-
- Material({
- Object key,
- this.child,
- this.edge: MaterialEdge.card,
- this.level: 0,
- this.color
- }) : super(key: key);
-
- final UINode child;
- final int level;
- final MaterialEdge edge;
- final Color color;
-
- // TODO(ianh): we should make this animate level changes and color changes
-
- UINode build() {
- return new Container(
- decoration: new BoxDecoration(
- boxShadow: shadows[level],
- borderRadius: edges[edge],
- backgroundColor: color == null ? Grey[50] : color,
- shape: edge == MaterialEdge.circle ? Shape.circle : Shape.rectangle
- ),
- child: child
- );
- }
-
-}
« no previous file with comments | « sky/sdk/lib/framework/widgets/ink_well.dart ('k') | sky/sdk/lib/framework/widgets/menu_divider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698