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

Unified Diff: sky/sdk/lib/framework/fn2.dart

Issue 1164363002: Sky support for flexbox justify content (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: merge 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/components2/ink_well.dart ('k') | sky/sdk/lib/framework/rendering/flex.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index a651dd7bb62fca29032cc0ec7a6fe95f59f95bba..4aa77fa26466d5990f156e8252869a663ef57efa 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -719,16 +719,19 @@ class FlexContainer extends MultiChildRenderObjectWrapper {
RenderFlex createNode() => new RenderFlex(direction: this.direction);
final FlexDirection direction;
+ final FlexJustifyContent justifyContent;
FlexContainer({
Object key,
List<UINode> children,
- this.direction: FlexDirection.horizontal
+ this.direction: FlexDirection.horizontal,
+ this.justifyContent: FlexJustifyContent.flexStart
}) : super(key: key, children: children);
void syncRenderObject(UINode old) {
super.syncRenderObject(old);
root.direction = direction;
+ root.justifyContent = justifyContent;
}
}
« no previous file with comments | « sky/sdk/lib/framework/components2/ink_well.dart ('k') | sky/sdk/lib/framework/rendering/flex.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698