Skip to content

Commit

Permalink
fix: RouterService clearStackAndShow (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
bilaldbank committed May 26, 2023
1 parent 3f12baa commit a5b775d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/navigation/router_service.dart
Expand Up @@ -51,7 +51,8 @@ class RouterService {

Future<void> clearStackAndShow(PageRouteInfo route,
{OnNavigationFailure? onFailure}) {
return router.pushAll([route], onFailure: onFailure);
router.clear();
return router.navigate(route, onFailure: onFailure);
}

Future<void> clearStackAndShowView(
Expand Down

0 comments on commit a5b775d

Please sign in to comment.