Inside the Home page, I defined the following BeamLocations, and since I have another BeamLocation inside the ChefRootWidget that has its own specific links, when I go to the following path:
There is no problem returning to the previous page by clicking on the back icon from chefStoreMenu to chefStoreHomePage. However, after touching the back button on the phone, the return occurs again, i.e., instead of returning to chefStoreHomePage, I am directly taken to the home page, which is wrong, and the page should be displayed. Therefore, both the home and chefStoreHomePage pages have their own specific BeamLocations.
Beamer version: 1.5.6
In my application, at the beginning, I have 3 pages with the following routes:
Inside the Home page, I defined the following
BeamLocations
, and since I have anotherBeamLocation
inside theChefRootWidget
that has its own specific links, when I go to the following path:There is no problem returning to the previous page by clicking on the back icon from
chefStoreMenu
tochefStoreHomePage
. However, after touching the back button on the phone, the return occurs again, i.e., instead of returning tochefStoreHomePage
, I am directly taken to the home page, which is wrong, and the page should be displayed. Therefore, both the home andchefStoreHomePage
pages have their own specificBeamLocations
.The BeamLocation of the Home page is:
and
ChefRootWidget
class:The BeamLocation of the chefStoreHomePage page is:
What I do is use
Beamer.of(context).beamToNamed
to move between pages, for example:its a full sample code: