From a66e55a89c30d4c8ea7662e0e804b5f0fe8681c3 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Sun, 25 Oct 2015 18:28:20 -0700 Subject: [PATCH] Fix Stocks search mode back button. Back button wasn't reliably working in checked mode. --- examples/stocks/lib/stock_home.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) {