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 146 matching lines...) Loading... |
157 // icon: 'action/help', | 157 // icon: 'action/help', |
158 // children: [new Text('Help & Feedback')]) | 158 // children: [new Text('Help & Feedback')]) |
159 // ] | 159 // ] |
160 ); | 160 ); |
161 } | 161 } |
162 | 162 |
163 UINode buildToolBar() { | 163 UINode buildToolBar() { |
164 return new ToolBar( | 164 return new ToolBar( |
165 left: new IconButton( | 165 left: new IconButton( |
166 icon: 'navigation/menu_white', | 166 icon: 'navigation/menu_white', |
167 onGestureTap: (_) => _drawerController.toggle), | 167 onGestureTap: _drawerController.toggle), |
168 center: new Text('Stocks'), | 168 center: new Text('Stocks'), |
169 right: [ | 169 right: [ |
170 new IconButton( | 170 new IconButton( |
171 icon: 'action/search_white', | 171 icon: 'action/search_white', |
172 onGestureTap: _handleSearchBegin), | 172 onGestureTap: _handleSearchBegin), |
173 new IconButton( | 173 new IconButton( |
174 icon: 'navigation/more_vert_white', | 174 icon: 'navigation/more_vert_white', |
175 onGestureTap: _handleMenuShow) | 175 onGestureTap: _handleMenuShow) |
176 ], | 176 ], |
177 backgroundColor: colors.Purple[500] | 177 backgroundColor: colors.Purple[500] |
(...skipping 39 matching lines...) Loading... |
217 ]; | 217 ]; |
218 addMenuToOverlays(overlays); | 218 addMenuToOverlays(overlays); |
219 return new StackContainer(children: overlays); | 219 return new StackContainer(children: overlays); |
220 } | 220 } |
221 } | 221 } |
222 | 222 |
223 void main() { | 223 void main() { |
224 print("starting stocks app!"); | 224 print("starting stocks app!"); |
225 new StocksApp(); | 225 new StocksApp(); |
226 } | 226 } |
OLD | NEW |