Duplicate GlobalKey detected in widget tree

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

    I also had a similar error. My answer was that after I updated Flutter some widgets no longer had child or children properties. In my case it was the CircleAvatar. The build doesn't error out initially, but when navigating back and forth through the app it will fail.

    *Please review all widgets that require a child then review the updated documentation and make sure you're parameters are still correct.

提交回复
热议问题