Santos-Enoque/flutter-web-dashboard-template

Duplicate GlobalKey

Opened this issue · 1 comments

The following GlobalKey was specified multiple times in the widget tree. This will lead to parts of the widget tree being truncated unexpectedly, because the second time a key is seen, the previous instance is moved to the new location. The key was:

  • [LabeledGlobalKey#bc309]
    This was determined by noticing that after the widget with the above global key was moved out of its previous parent, that previous parent never updated during this frame, meaning that it either did not update at all or updated before the widget was moved, in either case implying that it still thinks that it should have a child with that global key.

I was facing that issue when testing the not-found route.
It should work if you change the rootRoute from "/" to "/home"