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

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

Issue 1204523002: Material light and dark themes for Sky widgets (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: support accent colors 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 9a32825131996980e41c6b785b7cf9ff41f55878..48e2cbcfbb6432739c1a296f0145acbd3563f3e7 100644
--- a/sky/examples/stocks2/lib/stock_row.dart
+++ b/sky/examples/stocks2/lib/stock_row.dart
@@ -7,6 +7,7 @@ import 'package:sky/rendering/box.dart';
import 'package:sky/theme/typography.dart' as typography;
import 'package:sky/widgets/ink_well.dart';
import 'package:sky/widgets/basic.dart';
+import 'package:sky/widgets/theme.dart';
import 'stock_arrow.dart';
import 'stock_data.dart';
@@ -43,7 +44,7 @@ class StockRow extends Component {
new Flexible(
child: new Text(
changeInPrice,
- style: typography.black.caption.copyWith(textAlign: TextAlign.right)
+ style: Theme.of(this).text.caption.copyWith(textAlign: TextAlign.right)
eseidel 2015/06/22 22:28:16 Should this be this.theme() instead?
jackson 2015/06/22 22:40:10 Right now that's not how the inheritance system wo
)
)
];

Powered by Google App Engine
This is Rietveld 408576698