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

Side by Side Diff: sky/examples/stocks2/lib/stock_app.dart

Issue 1149893025: Make the StockList actually work in stocks2 (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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/framework/components2/scaffold.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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'package:sky/framework/components2/tool_bar.dart'; 5 import 'package:sky/framework/components2/tool_bar.dart';
6 import 'package:sky/framework/components2/drawer.dart'; 6 import 'package:sky/framework/components2/drawer.dart';
7 // import 'package:sky/framework/components2/drawer_header.dart'; 7 // import 'package:sky/framework/components2/drawer_header.dart';
8 // import 'package:sky/framework/components2/floating_action_button.dart'; 8 // import 'package:sky/framework/components2/floating_action_button.dart';
9 // import 'package:sky/framework/components2/icon.dart'; 9 // import 'package:sky/framework/components2/icon.dart';
10 import 'package:sky/framework/components2/icon_button.dart'; 10 import 'package:sky/framework/components2/icon_button.dart';
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // autorefresh: _autorefresh, 200 // autorefresh: _autorefresh,
201 // onAutorefreshChanged: _handleAutorefreshChanged 201 // onAutorefreshChanged: _handleAutorefreshChanged
202 // )], 202 // )],
203 // onDismiss: _handleMenuHide)); 203 // onDismiss: _handleMenuHide));
204 } 204 }
205 205
206 UINode build() { 206 UINode build() {
207 List<UINode> overlays = [ 207 List<UINode> overlays = [
208 new Scaffold( 208 new Scaffold(
209 toolbar: _isSearching ? buildSearchBar() : buildToolBar(), 209 toolbar: _isSearching ? buildSearchBar() : buildToolBar(),
210 // body: new Stocklist(stocks: _stocks, query: _searchQuery), 210 body: new Stocklist(stocks: _stocks, query: _searchQuery),
211 // floatingActionButton: new FloatingActionButton( 211 // floatingActionButton: new FloatingActionButton(
212 // content: new Icon(type: 'content/add_white', size: 24), 212 // content: new Icon(type: 'content/add_white', size: 24),
213 // level: 3), 213 // level: 3),
214 drawer: _drawerShowing ? buildDrawer() : null 214 drawer: _drawerShowing ? buildDrawer() : null
215 ), 215 ),
216 ]; 216 ];
217 addMenuToOverlays(overlays); 217 addMenuToOverlays(overlays);
218 return new StackContainer(children: overlays); 218 return new StackContainer(children: overlays);
219 } 219 }
220 } 220 }
221 221
222 void main() { 222 void main() {
223 print("starting stocks app!"); 223 print("starting stocks app!");
224 new StocksApp(); 224 new StocksApp();
225 } 225 }
OLDNEW
« no previous file with comments | « no previous file | sky/sdk/lib/framework/components2/scaffold.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698