| OLD | NEW |
| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // addMenuToOverlays(overlays); | 208 // addMenuToOverlays(overlays); |
| 209 return new Container( | 209 return new Container( |
| 210 child: new BlockContainer(children: [buildToolBar()]), | 210 child: new BlockContainer(children: [buildToolBar()]), |
| 211 decoration: new BoxDecoration( | 211 decoration: new BoxDecoration( |
| 212 backgroundColor: 0xFFFFFFFF | 212 backgroundColor: const sky.Color(0xFFFFFFFF) |
| 213 ) | 213 ) |
| 214 ); | 214 ); |
| 215 | 215 |
| 216 // return new Scaffold( | 216 // return new Scaffold( |
| 217 // toolbar: _isSearching ? buildSearchBar() : buildToolBar() | 217 // toolbar: _isSearching ? buildSearchBar() : buildToolBar() |
| 218 // , | 218 // , |
| 219 // body: new Stocklist(stocks: _stocks, query: _searchQuery), | 219 // body: new Stocklist(stocks: _stocks, query: _searchQuery), |
| 220 // floatingActionButton: new FloatingActionButton( | 220 // floatingActionButton: new FloatingActionButton( |
| 221 // content: new Icon(type: 'content/add_white', size: 24), level: 3), | 221 // content: new Icon(type: 'content/add_white', size: 24), level: 3), |
| 222 // drawer: _drawerShowing ? buildDrawer() : null, | 222 // drawer: _drawerShowing ? buildDrawer() : null, |
| 223 // overlays: overlays | 223 // overlays: overlays |
| 224 // ); | 224 // ); |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 | 227 |
| 228 void main() { | 228 void main() { |
| 229 print("starting stocks app!"); | 229 print("starting stocks app!"); |
| 230 new StocksApp(); | 230 new StocksApp(); |
| 231 } | 231 } |
| OLD | NEW |