Fix Stocks search mode back button.

Back button wasn't reliably working in checked mode.
This commit is contained in:
Ian Hickson
2015-10-25 18:28:20 -07:00
parent a6c473ea95
commit a66e55a89c

View File

@@ -39,13 +39,9 @@ class StockHomeState extends State<StockHome> {
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) {