From 4c2f2486cfe2b81594beff55b5a2a205f634a33d Mon Sep 17 00:00:00 2001 From: Rafael Weinstein Date: Fri, 13 Mar 2015 14:08:24 -0700 Subject: [PATCH] Allow Effen Styles to be extendable R=abarth@chromium.org Review URL: https://codereview.chromium.org/1006053002 --- examples/stocks-fn/stockarrow.dart | 4 ++-- examples/stocks-fn/stockrow.dart | 8 ++++---- examples/stocks-fn/stocksapp.dart | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/stocks-fn/stockarrow.dart b/examples/stocks-fn/stockarrow.dart index 63cebf5502..82e52815d2 100644 --- a/examples/stocks-fn/stockarrow.dart +++ b/examples/stocks-fn/stockarrow.dart @@ -74,11 +74,11 @@ class StockArrow extends Component { return new Container( inlineStyle: 'border-color: $border', - styles: [_style], + style: _style, children: [ new Container( inlineStyle: 'border-$type-color: $border', - styles: [up ? _upStyle : _downStyle] + style: up ? _upStyle : _downStyle ) ] ); diff --git a/examples/stocks-fn/stockrow.dart b/examples/stocks-fn/stockrow.dart index cacb3c0d89..6eb9df6480 100644 --- a/examples/stocks-fn/stockrow.dart +++ b/examples/stocks-fn/stockrow.dart @@ -47,23 +47,23 @@ class StockRow extends Component { ), new Container( key: 'Ticker', - styles: [_tickerStyle], + style: _tickerStyle, children: [new Text(stock.symbol)] ), new Container( key: 'LastSale', - styles: [_lastSaleStyle], + style: _lastSaleStyle, children: [new Text(lastSale)] ), new Container( key: 'Change', - styles: [_changeStyle], + style: _changeStyle, children: [new Text(changeInPrice)] ) ]; return new Material( - styles: [_style], + style: _style, children: children ); } diff --git a/examples/stocks-fn/stocksapp.dart b/examples/stocks-fn/stocksapp.dart index c35983ea9e..e303fbe26c 100644 --- a/examples/stocks-fn/stocksapp.dart +++ b/examples/stocks-fn/stocksapp.dart @@ -105,19 +105,19 @@ class StocksApp extends App { var toolbar = new Toolbar( children: [ - new Icon(key: 'menu', styles: [_iconStyle], + new Icon(key: 'menu', style: _iconStyle, size: 24, type: 'navigation/menu_white') ..events.listen('click', _drawerAnimation.toggle), new Container( - styles: [_titleStyle], + style: _titleStyle, children: [title] ), - new Icon(key: 'search', styles: [_iconStyle], + new Icon(key: 'search', style: _iconStyle, size: 24, type: 'action/search_white') ..events.listen('click', _handleSearchClick), - new Icon(key: 'more_white', styles: [_iconStyle], + new Icon(key: 'more_white', style: _iconStyle, size: 24, type: 'navigation/more_vert_white') ] @@ -133,7 +133,7 @@ class StocksApp extends App { children: [ new Container( key: 'Content', - styles: [_style], + style: _style, children: [toolbar, list] ), fab,