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

Unified Diff: sky/framework/layout.dart

Issue 1132113007: [Effen] remove more CSS (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: base is now checked in 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 | « sky/framework/components/scaffold.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/layout.dart
diff --git a/sky/framework/layout.dart b/sky/framework/layout.dart
index fb1d534c7a0a47a919491d9c030077950cc9ba04..4e74c8947cd4bd2298bce4b1c6304cf1fe02b5d9 100644
--- a/sky/framework/layout.dart
+++ b/sky/framework/layout.dart
@@ -344,7 +344,7 @@ class FlexBoxParentData extends CSSParentData {
}
}
-enum FlexDirection { Row }
+enum FlexDirection { Row, Column }
class RenderCSSFlex extends RenderCSSContainer {
@@ -364,11 +364,13 @@ class RenderCSSFlex extends RenderCSSContainer {
static final Style _displayFlex = new Style('display:flex');
static final Style _displayFlexRow = new Style('flex-direction:row');
+ static final Style _displayFlexColumn = new Style('flex-direction:column');
String stylesToClasses(List<Style> styles) {
var settings = _displayFlex._className;
switch (_direction) {
- case FlexDirection.Row: settings += ' ' + _displayFlexRow._className;
+ case FlexDirection.Row: settings += ' ' + _displayFlexRow._className; break;
+ case FlexDirection.Column: settings += ' ' + _displayFlexColumn._className; break;
}
return super.stylesToClasses(styles) + ' ' + settings;
}
« no previous file with comments | « sky/framework/components/scaffold.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698