You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The real values of the routes are given in the comments. That is, if the comment specifies /home/details - then the variable RoutesList.homeDetails.path contains the string '/home/details' and not 'home/details':
Basically, the problem is with the ImageView, which doesn't automatically have a BackButton. Oh yes, you can't see it in the video, because I added it specifically to the ImageView beforehand 😀:
The real picture of ImageView after routing on it:
If I remove the leading, the button doesn't appear. The only way to go back from this screen is to use vRouter.historyBack(). Which in general looks pretty crusty - you have to override the logic for showing the BackButton inside the AppBar and use vRouter.historyBack() to go back.
Is there any way to make this more "pretty"? I tried playing around with the location of one screen, inside of which my Nested screen and ImageView would already be on the same level, but it didn't work out well.
Also, the solution with the aliases from the link at the beginning - also did not help.
If it's useful - the source code of the project I mentioned is available here, and what you might be directly interested in is here.
P.S. And lastly, I'm writing an article comparing go_router and vrouter, and this annoying aspect of the latter prevents things from being done the way I want them to be.
The text was updated successfully, but these errors were encountered:
Hi, @lulupointu! First of all, I would like to thank you for this beautiful library! Thank you so much for your hard work!
And now to business:
I (and it seems by some issues - not only I) have some difficulty with how to organize routing to achieve such a goal:
Video
Here is the structure of my routing logic:
The real values of the routes are given in the comments. That is, if the comment specifies
/home/details
- then the variableRoutesList.homeDetails.path
contains the string'/home/details'
and not'home/details'
:Basically, the problem is with the
ImageView
, which doesn't automatically have aBackButton
. Oh yes, you can't see it in the video, because I added it specifically to the ImageView beforehand 😀:The real picture of ImageView after routing on it:
If I remove the leading, the button doesn't appear. The only way to go back from this screen is to use
vRouter.historyBack()
. Which in general looks pretty crusty - you have to override the logic for showing the BackButton inside the AppBar and usevRouter.historyBack()
to go back.Is there any way to make this more "pretty"? I tried playing around with the location of one screen, inside of which my
Nested
screen and ImageView would already be on the same level, but it didn't work out well.Also, the solution with the aliases from the link at the beginning - also did not help.
If it's useful - the source code of the project I mentioned is available here, and what you might be directly interested in is here.
P.S. And lastly, I'm writing an article comparing
go_router
andvrouter
, and this annoying aspect of the latter prevents things from being done the way I want them to be.The text was updated successfully, but these errors were encountered: