Eduardo Florence

Set Get.Parameter after runOnPageCalled

... ... @@ -206,7 +206,6 @@ class PageRedirect {
/// check if redirect is needed
bool needRecheck() {
final match = Get.routeTree.matchRoute(settings.name);
Get.parameters = match?.parameters;
// No Match found
if (match?.route == null) {
... ... @@ -216,6 +215,7 @@ class PageRedirect {
final runner = MiddlewareRunner(match.route.middlewares);
route = runner.runOnPageCalled(match.route);
Get.parameters = route?.parameter;
// No middlewares found return match.
if (match.route.middlewares == null || match.route.middlewares.isEmpty) {
... ...