| 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'; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 setState(() { | 108 setState(() { |
| 109 _stockMode = value; | 109 _stockMode = value; |
| 110 }); | 110 }); |
| 111 } | 111 } |
| 112 | 112 |
| 113 Drawer buildDrawer() { | 113 Drawer buildDrawer() { |
| 114 return new Drawer( | 114 return new Drawer( |
| 115 controller: _drawerController, | 115 controller: _drawerController, |
| 116 level: 3, | 116 level: 3, |
| 117 children: [ | 117 children: [ |
| 118 // new DrawerHeader(children: [new Text('Stocks')]), | 118 new DrawerHeader(children: [new Text('Stocks')]), |
| 119 new MenuItem( | 119 new MenuItem( |
| 120 key: 'Stock list', | 120 key: 'Stock list', |
| 121 icon: 'action/assessment', | 121 icon: 'action/assessment', |
| 122 children: [new Text('Stock List')]), | 122 children: [new Text('Stock List')]), |
| 123 new MenuItem( | 123 new MenuItem( |
| 124 key: 'Account Balance', | 124 key: 'Account Balance', |
| 125 icon: 'action/account_balance', | 125 icon: 'action/account_balance', |
| 126 children: [new Text('Account Balance')]), | 126 children: [new Text('Account Balance')]), |
| 127 new MenuDivider(key: 'div1'), | 127 new MenuDivider(key: 'div1'), |
| 128 new MenuItem( | 128 new MenuItem( |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |