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

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

Issue 1128743003: [Effen] Convert action_bar.dart to using a FlexContainer. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: make the 'direction' argument have a default value 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 | « no previous file | sky/framework/fn.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 e0b2ddfe75666ed657d79812fb274985916a9800..f874009412c7ed6093f5215b1b9b2a3f9aa5b502 100644
--- a/sky/framework/components/action_bar.dart
+++ b/sky/framework/components/action_bar.dart
@@ -3,13 +3,12 @@
// found in the LICENSE file.
import '../fn.dart';
+import '../layout.dart';
import '../theme/view_configuration.dart';
import 'material.dart';
class ActionBar extends Component {
static final Style _style = new Style('''
- display: flex;
- flex-direction: row;
align-items: center;
height: 56px;
padding: 0 8px;
@@ -38,7 +37,10 @@ class ActionBar extends Component {
children.addAll(right);
return new Material(
- content: new Container(style: _style, children: children),
+ content: new FlexContainer(
+ style: _style,
+ children: children,
+ direction: FlexDirection.Row),
level: 2);
}
}
« no previous file with comments | « no previous file | sky/framework/fn.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698