navigation_history_observer icon indicating copy to clipboard operation
navigation_history_observer copied to clipboard

When using Go_Router go(...) the history is not correct

Open chrisDK1977 opened this issue 2 years ago • 0 comments

Opening the glossary with GoRouter.of(context).go... the route is in the history twice and the root is missing -> [_PageBasedMaterialPageRoute(MaterialPage("/glossary", [<'807449802'>], {}), animation: AnimationController#a26a7(⏭ 1.000; paused; for _PageBasedMaterialPageRoute(/))), _ PageBasedMaterialPageRoute(MaterialPage("/glossary", [<'866997733'>], {}), animation: AnimationController#ea5e3(▶ 0.000; for _PageBasedMaterialPageRoute(/glossary)))]

using GoRouter.of(context).push everything is as expected

[_PageBasedMaterialPageRoute(MaterialPage("/", [<'807449802'>], {}), animation: AnimationController#a26a7(⏭ 1.000; paused; for _PageBasedMaterialPageRoute(/))), _ PageBasedMaterialPageRoute(MaterialPage("/glossary", [<'866997733'>], {}), animation: AnimationController#ea5e3(▶ 0.000; for _PageBasedMaterialPageRoute(/glossary)))]

chrisDK1977 avatar Dec 12 '22 21:12 chrisDK1977