EDIT:
The problem is regarding navigation, Im using GetX for navigation, and the problem is that using Get.back() isn't refreshing the state of the page that I want to get back to, so I need to use Get.toNamed.
This onPressed is used on my back button (on "screen2")
I can go to "screen2" page from "home", "screen1" and "screen3".
"home" and"screen1" are parent screens to "screen2" (is you can say it like that),
but "screen3" is only accessed from "screen2".
Now, when I return to "screen2" from "screen3", GetX saves the previous route of "screen3"
and when I press the back button(on "screen2") , it should either go to "home" or "screen1", depends on from where I opened "screen2"
It's pretty simple, but it's hard to explain in a simple way
EDIT: The upper part was easy, but now, there is the final boss: I believe that those below are all the routes.
The problem is probably around about path screen, cause it is the part where the most data goes through.
Home -> about mountain,
Home -> about path,
Home -> about poi,
Home -> about mountain -> about path
Home -> about mountain -> about path -> about poi
Home -> mountains screen -> about mountain -> about path
Home -> mountains screen -> about mountain -> about path -> about poi
Home -> paths screen -> about path
Home -> paths screen -> about path -> about poi
All possible routes are listed above

"screen2" is the same as "ABOUT MOUNTAIN"
I don't know if there is a better way of doing this other that using a bunch of conditionals.
(this is clearly wrong, there must be a more elegant approach)


