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 28 matching lines...) Expand all Loading... |
39 // if (debug) | 39 // if (debug) |
40 // new Timer(new Duration(seconds: 1), dumpState); | 40 // new Timer(new Duration(seconds: 1), dumpState); |
41 new StockDataFetcher((StockData data) { | 41 new StockDataFetcher((StockData data) { |
42 setState(() { | 42 setState(() { |
43 data.appendTo(_stocks); | 43 data.appendTo(_stocks); |
44 }); | 44 }); |
45 }); | 45 }); |
46 _drawerController = new DrawerController(_handleDrawerStatusChanged); | 46 _drawerController = new DrawerController(_handleDrawerStatusChanged); |
47 } | 47 } |
48 | 48 |
| 49 void syncFields(StocksApp source) { } |
| 50 |
49 bool _isSearching = false; | 51 bool _isSearching = false; |
50 String _searchQuery; | 52 String _searchQuery; |
51 | 53 |
52 void _handleSearchBegin(_) { | 54 void _handleSearchBegin(_) { |
53 setState(() { | 55 setState(() { |
54 _isSearching = true; | 56 _isSearching = true; |
55 }); | 57 }); |
56 } | 58 } |
57 | 59 |
58 void _handleSearchEnd(_) { | 60 void _handleSearchEnd(_) { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 } | 217 } |
216 | 218 |
217 void main() { | 219 void main() { |
218 print("starting stocks app!"); | 220 print("starting stocks app!"); |
219 App app = new StocksApp(); | 221 App app = new StocksApp(); |
220 app.appView.onFrame = () { | 222 app.appView.onFrame = () { |
221 // uncomment this for debugging: | 223 // uncomment this for debugging: |
222 // app.appView.debugDumpRenderTree(); | 224 // app.appView.debugDumpRenderTree(); |
223 }; | 225 }; |
224 } | 226 } |
OLD | NEW |