Fix Stocks search mode back button.
Back button wasn't reliably working in checked mode.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user