diff --git a/examples/stocks/lib/stock_home.dart b/examples/stocks/lib/stock_home.dart index 42d5db4776..85dbdebf55 100644 --- a/examples/stocks/lib/stock_home.dart +++ b/examples/stocks/lib/stock_home.dart @@ -39,13 +39,9 @@ class StockHomeState extends State { void _handleSearchEnd() { assert(() { final StateRoute currentRoute = config.navigator.currentRoute; - assert(currentRoute.owner == this); + return currentRoute.owner == this; }); config.navigator.pop(); - setState(() { - _isSearching = false; - _searchQuery = null; - }); } void _handleSearchQueryChanged(String query) {