Index: sky/framework/components/action_bar.dart |
diff --git a/sky/framework/components/action_bar.dart b/sky/framework/components/action_bar.dart |
index f874009412c7ed6093f5215b1b9b2a3f9aa5b502..309fb9b866144a07fb5ce976a5988b4c2e719a0a 100644 |
--- a/sky/framework/components/action_bar.dart |
+++ b/sky/framework/components/action_bar.dart |
@@ -16,8 +16,9 @@ class ActionBar extends Component { |
padding-top: ${kStatusBarHeight}px;'''); |
static Style _centerStyle = new Style(''' |
- padding-left: 24px; |
- flex: 1;'''); |
+ padding-left: 24px;'''); |
+ |
+ static FlexBoxParentData _centerLayoutSettings = new FlexBoxParentData()..flex = 1; |
UINode left; |
UINode center; |
@@ -31,7 +32,7 @@ class ActionBar extends Component { |
}) : super(key: key); |
UINode build() { |
- List<UINode> children = [left, new StyleNode(center, _centerStyle)]; |
+ List<UINode> children = [left, new StyleNode(new ParentDataNode(center, _centerLayoutSettings), _centerStyle)]; |
if (right != null) |
children.addAll(right); |