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

Unified Diff: sky/examples/stocks2/lib/stock_row.dart

Issue 1166203002: Rename Container's desiredSize argument to width and height arguments. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
Index: sky/examples/stocks2/lib/stock_row.dart
diff --git a/sky/examples/stocks2/lib/stock_row.dart b/sky/examples/stocks2/lib/stock_row.dart
index 7854b3c596c207be649df5f71f42ff153ad07eec..4990a55033226095f5111c28fe4864deaedd285b 100644
--- a/sky/examples/stocks2/lib/stock_row.dart
+++ b/sky/examples/stocks2/lib/stock_row.dart
@@ -32,21 +32,21 @@ class StockRow extends Component {
// ),
new FlexExpandingChild(new Text(stock.symbol)),
new Container(
- desiredSize: const sky.Size.fromWidth(75.0),
+ width: 75.0,
padding: const EdgeDims.only(right: 16.0),
// text-align: right
child: new Text(lastSale)
),
// text-align: right, ${typography.black.caption};
new SizedBox(
- desiredSize: const sky.Size.fromWidth(75.0),
+ width: 75.0,
child: new Text(changeInPrice)
),
];
return new Container(
padding: const EdgeDims(16.0, 16.0, 20.0, 16.0),
- desiredSize: const sky.Size.fromHeight(kHeight),
+ height: kHeight,
decoration: const BoxDecoration(
backgroundColor: const sky.Color(0xFFFFFFFF),
border: const Border(

Powered by Google App Engine
This is Rietveld 408576698