Duplicate GlobalKey detected in the widget tree issue in a Flutter Web App using GoRouter and ShellRoute
I had previously posted a question on showing main content/segment on my Flutter Web App that uses Riverpod and GoRouter. The answer to my question as one has commented is using ShellRoute. I tried to implement it and it did what I intended to do but I did encounter a bug as well as an exception caught by the library. I noticed that if I clicked the same link twice in the (left) menu panel, the first time it will go to the page, but the second time it will produce a blank page. I think it is related to the exception caught:
GoRouter’s state.pageKey.value is showing gibberish values
While working with GoRouter in Flutter, I was trying to debugPrint the page keys to see the checkout routing.
I’m expecting a result of readable strings such as “/cart/checkout-p1” or something, but as shown in the image, it resulted in “yeoapcyyctcqnctjsi[hgeYgyidi
^” instead.
Go_router back button just go back to the immediately previous route
I’ve tried and tried, but go_router and flutter won’t do the obvious.