I am running into a globalKey error after I navigate from Screen A to Screen B and click a \"Cancel\" button to go back to Scree
globalKey
Screen A
Screen B
Scree
I am not sure why no one has mentioned this yet but, in my case, I simply changed a widget from Stateful to Stateless. To fix the error, you have to restart the application instead of doing a hot reload.