Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: sky/examples/stocks2/lib/stock_app.dart

Issue 1173683003: [DO NOT CHECK IN] my debugging state for the assert when the drawer opens and closes prematurely (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/framework/components2/drawer.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | sky/sdk/lib/framework/components2/drawer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698