| 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'; |
| 11 // import 'package:sky/framework/components2/input.dart'; | 11 // import 'package:sky/framework/components2/input.dart'; |
| 12 // import 'package:sky/framework/components2/menu_divider.dart'; | 12 // import 'package:sky/framework/components2/menu_divider.dart'; |
| 13 // import 'package:sky/framework/components2/menu_item.dart'; | 13 // import 'package:sky/framework/components2/menu_item.dart'; |
| 14 // import 'package:sky/framework/components2/modal_overlay.dart'; | 14 // import 'package:sky/framework/components2/modal_overlay.dart'; |
| 15 // import 'package:sky/framework/components2/popup_menu.dart'; | 15 // import 'package:sky/framework/components2/popup_menu.dart'; |
| 16 // import 'package:sky/framework/components2/radio.dart'; | 16 // import 'package:sky/framework/components2/radio.dart'; |
| 17 import 'package:sky/framework/components2/scaffold.dart'; | 17 import 'package:sky/framework/components2/scaffold.dart'; |
| 18 import 'package:sky/framework/fn2.dart'; | 18 import 'package:sky/framework/fn2.dart'; |
| 19 import 'package:sky/framework/theme/typography.dart' as typography; | 19 import 'package:sky/framework/theme/typography.dart' as typography; |
| 20 import 'package:sky/framework/theme/colors.dart'; | 20 import 'package:sky/framework/theme/colors.dart'; |
| 21 import 'stock_data.dart'; | 21 import 'stock_data.dart'; |
| 22 // import 'stock_list.dart'; | 22 // import 'stock_list.dart'; |
| 23 // import 'stock_menu.dart'; | 23 // import 'stock_menu.dart'; |
| 24 | 24 |
| 25 import 'dart:async'; | 25 import 'dart:async'; |
| 26 import 'package:sky/framework/layout2.dart'; | |
| 27 | 26 |
| 28 enum StockMode { Optimistic, Pessimistic } | 27 enum StockMode { Optimistic, Pessimistic } |
| 29 | 28 |
| 30 class StocksApp extends App { | 29 class StocksApp extends App { |
| 31 | 30 |
| 32 // static final Style _toolBarStyle = new Style(''' | 31 // static final Style _toolBarStyle = new Style(''' |
| 33 // background-color: ${Purple[500]};'''); | 32 // background-color: ${Purple[500]};'''); |
| 34 | 33 |
| 35 // static final Style _searchBarStyle = new Style(''' | 34 // static final Style _searchBarStyle = new Style(''' |
| 36 // background-color: ${Grey[50]};'''); | 35 // background-color: ${Grey[50]};'''); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 // drawer: _drawerShowing ? buildDrawer() : null, | 220 // drawer: _drawerShowing ? buildDrawer() : null, |
| 222 // overlays: overlays | 221 // overlays: overlays |
| 223 ); | 222 ); |
| 224 } | 223 } |
| 225 } | 224 } |
| 226 | 225 |
| 227 void main() { | 226 void main() { |
| 228 print("starting stocks app!"); | 227 print("starting stocks app!"); |
| 229 new StocksApp(); | 228 new StocksApp(); |
| 230 } | 229 } |
| OLD | NEW |