Duplicate GlobalKey detected in widget tree

前端 未结 10 1205
孤街浪徒
孤街浪徒 2021-01-03 19:21

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

10条回答
  •  灰色年华
    2021-01-03 19:48

    I had a similar problem. in my case the problem was that I had a function in dispose method of screen B and it wouldn't execute properly. I just removed it and the problem was fixed.

    so be sure your dispose method is executed properly in all screens.

提交回复
热议问题