Remove StateRoutes

This commit is contained in:
Hixie
2015-11-23 16:36:25 -08:00
parent bde2058817
commit 8218a13aa4
8 changed files with 110 additions and 163 deletions

View File

@@ -24,8 +24,8 @@ class StockHomeState extends State<StockHome> {
String _searchQuery;
void _handleSearchBegin() {
Navigator.of(context).push(new StateRoute(
onPop: () {
ModalRoute.of(context).addLocalHistoryEntry(new LocalHistoryEntry(
onRemove: () {
setState(() {
_isSearching = false;
_searchQuery = null;