Index: sky/examples/stocks/lib/stock_app.dart |
diff --git a/sky/examples/stocks/lib/stock_app.dart b/sky/examples/stocks/lib/stock_app.dart |
index f78dadda157a7c08198b38ee566308cbb258423e..aa35a5dd4a7e8c2e370a326a1c0fce743545995f 100644 |
--- a/sky/examples/stocks/lib/stock_app.dart |
+++ b/sky/examples/stocks/lib/stock_app.dart |
@@ -21,6 +21,11 @@ import 'stock_data.dart'; |
import 'stock_list.dart'; |
import 'stock_menu.dart'; |
+import 'dart:async'; |
+import 'package:sky/framework/layout.dart'; |
+ |
+const bool debug = false; // set to true to dump the DOM for debugging purposes |
+ |
class StocksApp extends App { |
DrawerController _drawerController = new DrawerController(); |
PopupMenuController _menuController; |
@@ -39,6 +44,8 @@ class StocksApp extends App { |
String _searchQuery; |
StocksApp() : super() { |
+ if (debug) |
+ new Timer(new Duration(seconds: 1), dumpState); |
new StockDataFetcher((StockData data) { |
setState(() { |
data.appendTo(_stocks); |