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

Unified Diff: sky/examples/stocks/lib/stock_arrow.dart

Issue 1132983007: [Layout] Put in some guards to prevent us from reintroducing 'display' properties into the CSS. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: git cl status 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/examples/stocks/lib/stock_row.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/stocks/lib/stock_arrow.dart
diff --git a/sky/examples/stocks/lib/stock_arrow.dart b/sky/examples/stocks/lib/stock_arrow.dart
index 78a4b66ee7d579a8565ee3da52bd10a0d5d9ec28..5395984f25cb2daaed62dc06fe9d2d151eddabf4 100644
--- a/sky/examples/stocks/lib/stock_arrow.dart
+++ b/sky/examples/stocks/lib/stock_arrow.dart
@@ -4,13 +4,12 @@
import 'dart:math';
import 'package:sky/framework/fn.dart';
+import 'package:sky/framework/layout.dart';
class StockArrow extends Component {
static final Style _style = new Style('''
width: 40px;
height: 40px;
- display: flex;
- flex-direction: row;
align-items: center;
justify-content: center;
border-radius: 40px;
@@ -79,8 +78,9 @@ class StockArrow extends Component {
bool up = percentChange > 0;
String type = up ? 'bottom' : 'top';
- return new Container(
+ return new FlexContainer(
inlineStyle: 'border-color: $border',
+ direction: FlexDirection.Row,
style: _style,
children: [
new Container(
« no previous file with comments | « no previous file | sky/examples/stocks/lib/stock_row.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698