| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 icon: 'action/help', | 151 icon: 'action/help', |
| 152 children: [new Text('Help & Feedback')]) | 152 children: [new Text('Help & Feedback')]) |
| 153 ] | 153 ] |
| 154 ); | 154 ); |
| 155 } | 155 } |
| 156 | 156 |
| 157 UINode buildToolBar() { | 157 UINode buildToolBar() { |
| 158 return new ToolBar( | 158 return new ToolBar( |
| 159 left: new IconButton( | 159 left: new IconButton( |
| 160 icon: 'navigation/menu_white', | 160 icon: 'navigation/menu_white', |
| 161 onGestureTap: _drawerController.toggle), | 161 onGestureTap: (_) => _drawerController.toggle()), |
| 162 center: new Text('Stocks'), | 162 center: new Text('Stocks'), |
| 163 right: [ | 163 right: [ |
| 164 new IconButton( | 164 new IconButton( |
| 165 icon: 'action/search_white', | 165 icon: 'action/search_white', |
| 166 onGestureTap: _handleSearchBegin), | 166 onGestureTap: _handleSearchBegin), |
| 167 new IconButton( | 167 new IconButton( |
| 168 icon: 'navigation/more_vert_white', | 168 icon: 'navigation/more_vert_white', |
| 169 onGestureTap: _handleMenuShow) | 169 onGestureTap: _handleMenuShow) |
| 170 ], | 170 ], |
| 171 backgroundColor: colors.Purple[500] | 171 backgroundColor: colors.Purple[500] |
| (...skipping 43 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 |