This commit is contained in:
Hillel Coren 2019-06-12 18:24:13 +03:00
parent d82f43899e
commit c7191bf202
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ Middleware<AppState> _editVendor() {
return (Store<AppState> store, dynamic action, NextDispatcher next) async {
next(action);
store.dispatch(UpdateCurrentRoute(VendorEditScreen.route));
if (action.trackRoute) {
store.dispatch(UpdateCurrentRoute(VendorEditScreen.route));
}
final vendor =
await Navigator.of(action.context).pushNamed(VendorEditScreen.route);