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

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

Issue 1178913003: Add support for text styles. (Closed) Base URL: git@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 fc0555bce72131ab34788224bd9ef536902fa699..bd42004a2bfe77b5cc06adab881778495e241a05 100644
--- a/sky/examples/stocks2/lib/stock_row.dart
+++ b/sky/examples/stocks2/lib/stock_row.dart
@@ -5,8 +5,9 @@
import 'dart:sky' as sky;
import 'package:sky/framework/rendering/box.dart';
-import 'package:sky/framework/widgets/wrappers.dart';
+import 'package:sky/framework/theme2/typography.dart' as typography;
import 'package:sky/framework/widgets/ink_well.dart';
+import 'package:sky/framework/widgets/wrappers.dart';
import 'stock_arrow.dart';
import 'stock_data.dart';
@@ -33,7 +34,9 @@ class StockRow extends Component {
// TODO(hansmuller): text-align: right
new FlexExpandingChild(new Text(lastSale), key: "lastSale"),
// TODO(hansmuller): text-align: right, ${typography.black.caption};
- new FlexExpandingChild(new Text(changeInPrice), key: "changeInPrice")
+ new FlexExpandingChild(new Text(changeInPrice,
+ style: typography.black.caption),
+ key: "changeInPrice")
];
// TODO(hansmuller): An explicit |height| shouldn't be needed

Powered by Google App Engine
This is Rietveld 408576698