From 94f910d8b473341e33694e60bba69da1376e0d6a Mon Sep 17 00:00:00 2001 From: Hixie Date: Thu, 1 Oct 2015 13:31:18 -0700 Subject: [PATCH] Stocks app used RouteState, now renamed StateRoute --- examples/stocks/lib/stock_home.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/stocks/lib/stock_home.dart b/examples/stocks/lib/stock_home.dart index be55df4300..0fc8f4a72f 100644 --- a/examples/stocks/lib/stock_home.dart +++ b/examples/stocks/lib/stock_home.dart @@ -41,8 +41,8 @@ class StockHomeState extends State { } void _handleSearchEnd() { - assert(config.navigator.currentRoute is RouteState); - assert((config.navigator.currentRoute as RouteState).owner == this); // TODO(ianh): remove cast once analyzer is cleverer + assert(config.navigator.currentRoute is StateRoute); + assert((config.navigator.currentRoute as StateRoute).owner == this); // TODO(ianh): remove cast once analyzer is cleverer config.navigator.pop(); setState(() { _isSearching = false;