diff --git a/examples/stocks/lib/stock_home.dart b/examples/stocks/lib/stock_home.dart index 03bf9d3d97..fed4f29c22 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) {