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

Unified Diff: sky/framework/components/action_bar.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 | « no previous file | sky/framework/components/button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/action_bar.dart
diff --git a/sky/framework/components/action_bar.dart b/sky/framework/components/action_bar.dart
index 2abdc0d01e5597dda035a33ec2413d82da6386ba..cf8bc6ff208da21740f7434d46a586ec40bf5545 100644
--- a/sky/framework/components/action_bar.dart
+++ b/sky/framework/components/action_bar.dart
@@ -3,8 +3,8 @@
// found in the LICENSE file.
import '../fn.dart';
-import '../theme/shadows.dart';
import '../theme/view-configuration.dart';
+import 'material.dart';
class ActionBar extends Component {
static final Style _style = new Style('''
@@ -13,8 +13,7 @@ class ActionBar extends Component {
height: 56px;
padding: 0 8px;
transition: background-color 0.3s;
- padding-top: ${kStatusBarHeight}px;
- box-shadow: ${Shadow[2]};''');
+ padding-top: ${kStatusBarHeight}px;''');
static Style _centerStyle = new Style('''
padding-left: 24px;
@@ -37,6 +36,8 @@ class ActionBar extends Component {
if (right != null)
children.addAll(right);
- return new Container(style: _style, children: children);
+ return new Material(
+ content: new Container(style: _style, children: children),
+ level: 2);
}
}
« no previous file with comments | « no previous file | sky/framework/components/button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698