| 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'; |
| 11 import 'package:sky/framework/components2/menu_divider.dart'; | 11 import 'package:sky/framework/components2/menu_divider.dart'; |
| 12 import 'package:sky/framework/components2/menu_item.dart'; | 12 import 'package:sky/framework/components2/menu_item.dart'; |
| 13 import 'package:sky/framework/components2/input.dart'; | 13 import 'package:sky/framework/components2/input.dart'; |
| 14 // import 'package:sky/framework/components2/modal_overlay.dart'; | 14 // import 'package:sky/framework/components2/modal_overlay.dart'; |
| 15 // import 'package:sky/framework/components2/popup_menu.dart'; | 15 // import 'package:sky/framework/components2/popup_menu.dart'; |
| 16 import 'package:sky/framework/components2/radio.dart'; | 16 import 'package:sky/framework/components2/radio.dart'; |
| 17 import 'package:sky/framework/components2/scaffold.dart'; | 17 import 'package:sky/framework/components2/scaffold.dart'; |
| 18 import 'package:sky/framework/fn2.dart'; | 18 import 'package:sky/framework/fn2.dart'; |
| 19 import 'package:sky/framework/theme2/typography.dart' as typography; | 19 import 'package:sky/framework/theme2/typography.dart' as typography; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // onAutorefreshChanged: _handleAutorefreshChanged | 196 // onAutorefreshChanged: _handleAutorefreshChanged |
| 197 // )], | 197 // )], |
| 198 // onDismiss: _handleMenuHide)); | 198 // onDismiss: _handleMenuHide)); |
| 199 } | 199 } |
| 200 | 200 |
| 201 UINode build() { | 201 UINode build() { |
| 202 List<UINode> overlays = [ | 202 List<UINode> overlays = [ |
| 203 new Scaffold( | 203 new Scaffold( |
| 204 toolbar: _isSearching ? buildSearchBar() : buildToolBar(), | 204 toolbar: _isSearching ? buildSearchBar() : buildToolBar(), |
| 205 body: new Stocklist(stocks: _stocks, query: _searchQuery), | 205 body: new Stocklist(stocks: _stocks, query: _searchQuery), |
| 206 // floatingActionButton: new FloatingActionButton( | 206 floatingActionButton: new FloatingActionButton( |
| 207 // content: new Icon(type: 'content/add_white', size: 24), | 207 content: new Icon(type: 'content/add_white', size: 24), |
| 208 // level: 3), | 208 level: 3), |
| 209 drawer: _drawerShowing ? buildDrawer() : null | 209 drawer: _drawerShowing ? buildDrawer() : null |
| 210 ), | 210 ), |
| 211 ]; | 211 ]; |
| 212 addMenuToOverlays(overlays); | 212 addMenuToOverlays(overlays); |
| 213 return new StackContainer(children: overlays); | 213 return new StackContainer(children: overlays); |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 | 216 |
| 217 void main() { | 217 void main() { |
| 218 print("starting stocks app!"); | 218 print("starting stocks app!"); |
| 219 App app = new StocksApp(); | 219 App app = new StocksApp(); |
| 220 app.appView.onFrame = () { | 220 app.appView.onFrame = () { |
| 221 // uncomment this for debugging: | 221 // uncomment this for debugging: |
| 222 // app.appView.debugDumpRenderTree(); | 222 // app.appView.debugDumpRenderTree(); |
| 223 }; | 223 }; |
| 224 } | 224 } |
| OLD | NEW |