| 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/editing2/input.dart'; |
| 6 import 'package:sky/framework/components2/drawer.dart'; | |
| 7 import 'package:sky/framework/components2/drawer_header.dart'; | |
| 8 import 'package:sky/framework/components2/floating_action_button.dart'; | |
| 9 import 'package:sky/framework/components2/icon.dart'; | |
| 10 import 'package:sky/framework/components2/icon_button.dart'; | |
| 11 import 'package:sky/framework/components2/menu_divider.dart'; | |
| 12 import 'package:sky/framework/components2/menu_item.dart'; | |
| 13 import 'package:sky/framework/components2/input.dart'; | |
| 14 import 'package:sky/framework/components2/modal_overlay.dart'; | |
| 15 import 'package:sky/framework/components2/popup_menu.dart'; | |
| 16 import 'package:sky/framework/components2/radio.dart'; | |
| 17 import 'package:sky/framework/components2/scaffold.dart'; | |
| 18 import 'package:sky/framework/fn2.dart'; | |
| 19 import 'package:sky/framework/theme2/typography.dart' as typography; | |
| 20 import 'package:sky/framework/theme2/colors.dart' as colors; | 6 import 'package:sky/framework/theme2/colors.dart' as colors; |
| 7 import 'package:sky/framework/widgets/drawer.dart'; |
| 8 import 'package:sky/framework/widgets/drawer_header.dart'; |
| 9 import 'package:sky/framework/widgets/floating_action_button.dart'; |
| 10 import 'package:sky/framework/widgets/icon.dart'; |
| 11 import 'package:sky/framework/widgets/icon_button.dart'; |
| 12 import 'package:sky/framework/widgets/menu_divider.dart'; |
| 13 import 'package:sky/framework/widgets/menu_item.dart'; |
| 14 import 'package:sky/framework/widgets/modal_overlay.dart'; |
| 15 import 'package:sky/framework/widgets/popup_menu.dart'; |
| 16 import 'package:sky/framework/widgets/radio.dart'; |
| 17 import 'package:sky/framework/widgets/scaffold.dart'; |
| 18 import 'package:sky/framework/widgets/tool_bar.dart'; |
| 19 import 'package:sky/framework/widgets/wrappers.dart'; |
| 20 |
| 21 import 'stock_data.dart'; | 21 import 'stock_data.dart'; |
| 22 import 'package:sky/framework/rendering/box.dart'; | |
| 23 import 'stock_list.dart'; | 22 import 'stock_list.dart'; |
| 24 import 'stock_menu.dart'; | 23 import 'stock_menu.dart'; |
| 25 | 24 |
| 26 import 'dart:async'; | |
| 27 import 'dart:sky' as sky; | |
| 28 | |
| 29 enum StockMode { optimistic, pessimistic } | 25 enum StockMode { optimistic, pessimistic } |
| 30 | 26 |
| 31 class StocksApp extends App { | 27 class StocksApp extends App { |
| 32 | 28 |
| 33 // static final Style _titleStyle = new Style(''' | 29 // static final Style _titleStyle = new Style(''' |
| 34 // ${typography.white.title};'''); | 30 // ${typography.white.title};'''); |
| 35 | 31 |
| 36 List<Stock> _stocks = []; | 32 List<Stock> _stocks = []; |
| 37 | 33 |
| 38 StocksApp() : super() { | 34 StocksApp() : super() { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 } | 211 } |
| 216 | 212 |
| 217 void main() { | 213 void main() { |
| 218 print("starting stocks app!"); | 214 print("starting stocks app!"); |
| 219 App app = new StocksApp(); | 215 App app = new StocksApp(); |
| 220 app.appView.onFrame = () { | 216 app.appView.onFrame = () { |
| 221 // uncomment this for debugging: | 217 // uncomment this for debugging: |
| 222 // app.appView.debugDumpRenderTree(); | 218 // app.appView.debugDumpRenderTree(); |
| 223 }; | 219 }; |
| 224 } | 220 } |
| OLD | NEW |