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

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

Issue 1172503004: Enable setting the UINode key for ParentDataNodes (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/menu_item.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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(
129 key: 'Optimistic Menu Item', 129 key: 'Optimistic Menu Item',
130 icon: 'action/thumb_up', 130 icon: 'action/thumb_up',
131 onGestureTap: (event) => _handleStockModeChange(StockMode.optimistic), 131 onGestureTap: (event) => _handleStockModeChange(StockMode.optimistic),
132 children: [ 132 children: [
133 new FlexExpandingChild(new Text('Optimistic'), 1), 133 new FlexExpandingChild(new Text('Optimistic'), flex: 1),
134 new Radio(key: 'optimistic-radio', value: StockMode.optimistic, grou pValue: _stockMode, onChanged: _handleStockModeChange) 134 new Radio(key: 'optimistic-radio', value: StockMode.optimistic, grou pValue: _stockMode, onChanged: _handleStockModeChange)
135 ]), 135 ]),
136 new MenuItem( 136 new MenuItem(
137 key: 'Pessimistic Menu Item', 137 key: 'Pessimistic Menu Item',
138 icon: 'action/thumb_down', 138 icon: 'action/thumb_down',
139 onGestureTap: (event) => _handleStockModeChange(StockMode.pessimistic) , 139 onGestureTap: (event) => _handleStockModeChange(StockMode.pessimistic) ,
140 children: [ 140 children: [
141 new FlexExpandingChild(new Text('Pessimistic'), 1), 141 new FlexExpandingChild(new Text('Pessimistic'), flex: 1),
142 new Radio(key: 'pessimistic-radio', value: StockMode.pessimistic, gr oupValue: _stockMode, onChanged: _handleStockModeChange) 142 new Radio(key: 'pessimistic-radio', value: StockMode.pessimistic, gr oupValue: _stockMode, onChanged: _handleStockModeChange)
143 ]), 143 ]),
144 new MenuDivider(key: 'div2'), 144 new MenuDivider(key: 'div2'),
145 new MenuItem( 145 new MenuItem(
146 key: 'Settings', 146 key: 'Settings',
147 icon: 'action/settings', 147 icon: 'action/settings',
148 children: [new Text('Settings')]), 148 children: [new Text('Settings')]),
149 new MenuItem( 149 new MenuItem(
150 key: 'Help & Feedback', 150 key: 'Help & Feedback',
151 icon: 'action/help', 151 icon: 'action/help',
(...skipping 63 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/menu_item.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698