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

Side by Side Diff: sky/examples/stocks-fn/stocksapp.dart

Issue 1010913002: Rename Sky's Toolbar to ActionBar (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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/framework/components/action_bar.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library stocksapp; 1 library stocksapp;
2 2
3 import '../../framework/fn.dart'; 3 import '../../framework/fn.dart';
4 import '../../framework/animation/scroll_behavior.dart'; 4 import '../../framework/animation/scroll_behavior.dart';
5 import '../../framework/components/drawer.dart'; 5 import '../../framework/components/drawer.dart';
6 import '../../framework/components/drawer_header.dart'; 6 import '../../framework/components/drawer_header.dart';
7 import '../../framework/components/fixed_height_scrollable.dart'; 7 import '../../framework/components/fixed_height_scrollable.dart';
8 import '../../framework/components/floating_action_button.dart'; 8 import '../../framework/components/floating_action_button.dart';
9 import '../../framework/components/icon.dart'; 9 import '../../framework/components/icon.dart';
10 import '../../framework/components/input.dart'; 10 import '../../framework/components/input.dart';
11 import '../../framework/components/material.dart'; 11 import '../../framework/components/material.dart';
12 import '../../framework/components/menu_divider.dart'; 12 import '../../framework/components/menu_divider.dart';
13 import '../../framework/components/menu_item.dart'; 13 import '../../framework/components/menu_item.dart';
14 import '../../framework/components/toolbar.dart'; 14 import '../../framework/components/action_bar.dart';
15 import '../data/stocks.dart'; 15 import '../data/stocks.dart';
16 import 'dart:math'; 16 import 'dart:math';
17 17
18 part 'stockarrow.dart'; 18 part 'stockarrow.dart';
19 part 'stocklist.dart'; 19 part 'stocklist.dart';
20 part 'stockrow.dart'; 20 part 'stockrow.dart';
21 21
22 class StocksApp extends App { 22 class StocksApp extends App {
23 23
24 DrawerAnimation _drawerAnimation = new DrawerAnimation(); 24 DrawerAnimation _drawerAnimation = new DrawerAnimation();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 ); 96 );
97 97
98 Node title; 98 Node title;
99 if (_isSearching) { 99 if (_isSearching) {
100 title = new Input(focused: true, placeholder: 'Search stocks', 100 title = new Input(focused: true, placeholder: 'Search stocks',
101 onChanged: _handleSearchQueryChanged); 101 onChanged: _handleSearchQueryChanged);
102 } else { 102 } else {
103 title = new Text('I am a stocks app'); 103 title = new Text('I am a stocks app');
104 } 104 }
105 105
106 var toolbar = new Toolbar( 106 var toolbar = new ActionBar(
107 children: [ 107 children: [
108 new Icon(key: 'menu', style: _iconStyle, 108 new Icon(key: 'menu', style: _iconStyle,
109 size: 24, 109 size: 24,
110 type: 'navigation/menu_white') 110 type: 'navigation/menu_white')
111 ..events.listen('click', _drawerAnimation.toggle), 111 ..events.listen('click', _drawerAnimation.toggle),
112 new Container( 112 new Container(
113 style: _titleStyle, 113 style: _titleStyle,
114 children: [title] 114 children: [title]
115 ), 115 ),
116 new Icon(key: 'search', style: _iconStyle, 116 new Icon(key: 'search', style: _iconStyle,
(...skipping 18 matching lines...) Expand all
135 key: 'Content', 135 key: 'Content',
136 style: _style, 136 style: _style,
137 children: [toolbar, list] 137 children: [toolbar, list]
138 ), 138 ),
139 fab, 139 fab,
140 drawer, 140 drawer,
141 ] 141 ]
142 ); 142 );
143 } 143 }
144 } 144 }
OLDNEW
« no previous file with comments | « no previous file | sky/framework/components/action_bar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698