Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(626)

Unified Diff: sky/sdk/example/stocks/lib/stock_home.dart

Issue 1217093005: Refactor stateful parts of Component into StatefulComponent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/example/mine_digger/lib/main.dart ('k') | sky/sdk/example/stocks/lib/stock_settings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/stocks/lib/stock_home.dart
diff --git a/sky/sdk/example/stocks/lib/stock_home.dart b/sky/sdk/example/stocks/lib/stock_home.dart
index 9f4e697f4478cf0dddc5c9939f76a80d55118c66..b26e392780a12c3679733448bdf13b034d2e1eb4 100644
--- a/sky/sdk/example/stocks/lib/stock_home.dart
+++ b/sky/sdk/example/stocks/lib/stock_home.dart
@@ -29,9 +29,9 @@ import 'stock_types.dart';
typedef void ModeUpdater(StockMode mode);
-class StockHome extends Component {
+class StockHome extends StatefulComponent {
- StockHome(this.navigator, this.stocks, this.stockMode, this.modeUpdater) : super(stateful: true) {
+ StockHome(this.navigator, this.stocks, this.stockMode, this.modeUpdater) {
// if (debug)
// new Timer(new Duration(seconds: 1), dumpState);
_drawerController = new DrawerController(_handleDrawerStatusChanged);
« no previous file with comments | « sky/sdk/example/mine_digger/lib/main.dart ('k') | sky/sdk/example/stocks/lib/stock_settings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698