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/editing/input.dart'; | 5 import 'package:sky/editing/input.dart'; |
6 import 'package:sky/theme/colors.dart' as colors; | 6 import 'package:sky/theme/colors.dart' as colors; |
7 import 'package:sky/theme/typography.dart' as typography; | |
8 import 'package:sky/widgets/basic.dart'; | 7 import 'package:sky/widgets/basic.dart'; |
9 import 'package:sky/widgets/drawer.dart'; | 8 import 'package:sky/widgets/drawer.dart'; |
10 import 'package:sky/widgets/drawer_header.dart'; | 9 import 'package:sky/widgets/drawer_header.dart'; |
11 import 'package:sky/widgets/floating_action_button.dart'; | 10 import 'package:sky/widgets/floating_action_button.dart'; |
12 import 'package:sky/widgets/icon.dart'; | 11 import 'package:sky/widgets/icon.dart'; |
13 import 'package:sky/widgets/icon_button.dart'; | 12 import 'package:sky/widgets/icon_button.dart'; |
14 import 'package:sky/widgets/menu_divider.dart'; | 13 import 'package:sky/widgets/menu_divider.dart'; |
15 import 'package:sky/widgets/menu_item.dart'; | 14 import 'package:sky/widgets/menu_item.dart'; |
16 import 'package:sky/widgets/modal_overlay.dart'; | 15 import 'package:sky/widgets/modal_overlay.dart'; |
17 import 'package:sky/widgets/navigator.dart'; | 16 import 'package:sky/widgets/navigator.dart'; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 navigator.pushState("/drawer", (_) { | 153 navigator.pushState("/drawer", (_) { |
155 _drawerController.close(); | 154 _drawerController.close(); |
156 }); | 155 }); |
157 } | 156 } |
158 | 157 |
159 Widget buildToolBar() { | 158 Widget buildToolBar() { |
160 return new ToolBar( | 159 return new ToolBar( |
161 left: new IconButton( | 160 left: new IconButton( |
162 icon: 'navigation/menu_white', | 161 icon: 'navigation/menu_white', |
163 onPressed: _handleOpenDrawer), | 162 onPressed: _handleOpenDrawer), |
164 center: new Text('Stocks', style: typography.white.title), | 163 center: new Text('Stocks'), |
165 right: [ | 164 right: [ |
166 new IconButton( | 165 new IconButton( |
167 icon: 'action/search_white', | 166 icon: 'action/search_white', |
168 onPressed: _handleSearchBegin), | 167 onPressed: _handleSearchBegin), |
169 new IconButton( | 168 new IconButton( |
170 icon: 'navigation/more_vert_white', | 169 icon: 'navigation/more_vert_white', |
171 onPressed: _handleMenuShow) | 170 onPressed: _handleMenuShow) |
172 ] | 171 ] |
173 ); | 172 ); |
174 } | 173 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 floatingActionButton: new FloatingActionButton( | 206 floatingActionButton: new FloatingActionButton( |
208 child: new Icon(type: 'content/add_white', size: 24) | 207 child: new Icon(type: 'content/add_white', size: 24) |
209 ), | 208 ), |
210 drawer: _drawerShowing ? buildDrawer() : null | 209 drawer: _drawerShowing ? buildDrawer() : null |
211 ), | 210 ), |
212 ]; | 211 ]; |
213 addMenuToOverlays(overlays); | 212 addMenuToOverlays(overlays); |
214 return new Stack(overlays); | 213 return new Stack(overlays); |
215 } | 214 } |
216 } | 215 } |
OLD | NEW |