| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 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 |