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

Unified Diff: sky/examples/stocks-fn/stocksapp.dart

Issue 1003553002: Update Button to be made of Material (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/stocks-fn/stocksapp.dart
diff --git a/sky/examples/stocks-fn/stocksapp.dart b/sky/examples/stocks-fn/stocksapp.dart
index 77cb6ef4e6c7cd9617ca359d9937172e78c0dc97..d392d659c73706d1bdc5b4ff80215e8f90eb4289 100644
--- a/sky/examples/stocks-fn/stocksapp.dart
+++ b/sky/examples/stocks-fn/stocksapp.dart
@@ -64,6 +64,7 @@ class StocksApp extends App {
Node build() {
var drawer = new Drawer(
animation: _drawerAnimation,
+ level: 3,
children: [
new DrawerHeader(
children: [new Text('Stocks')]
@@ -103,19 +104,19 @@ class StocksApp extends App {
var toolbar = new Toolbar(
children: [
- new Icon(key: 'menu', style: _iconStyle,
+ new Icon(key: 'menu', styles: [_iconStyle],
size: 24,
type: 'navigation/menu_white')
..events.listen('click', _drawerAnimation.toggle),
new Container(
- style: _titleStyle,
+ styles: [_titleStyle],
children: [title]
),
- new Icon(key: 'search', style: _iconStyle,
+ new Icon(key: 'search', styles: [_iconStyle],
size: 24,
type: 'action/search_white')
..events.listen('click', _handleSearchClick),
- new Icon(key: 'more_white', style: _iconStyle,
+ new Icon(key: 'more_white', styles: [_iconStyle],
size: 24,
type: 'navigation/more_vert_white')
]
@@ -124,14 +125,14 @@ class StocksApp extends App {
var list = new Stocklist(stocks: _sortedStocks, query: _searchQuery);
var fab = new FloatingActionButton(content: new Icon(
- type: 'content/add_white', size: 24));
+ type: 'content/add_white', size: 24), level: 3);
return new Container(
key: 'StocksApp',
children: [
new Container(
key: 'Content',
- style: _style,
+ styles: [_style],
children: [toolbar, list]
),
fab,

Powered by Google App Engine
This is Rietveld 408576698