Duplicate GlobalKey detected in widget tree

前端 未结 10 1119
孤街浪徒
孤街浪徒 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:29

    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.

提交回复
热议问题