There are multiple heroes that share the same tag within a subtree. While navigation by using Navigator pop

116 Views Asked by At

While navigating from one page to another after clicking material button, I'm getting the following error Within each subtree for which heroes are to be animated (i.e. a PageRoute subtree), each Hero must have a unique non-null tag. In this case, multiple heroes had the following tag: <SnackBar Hero tag - Text("Data Saved")> Here is the subtree for one of the offending heroes: Hero Here I'm using 3 material button, one is for save, cancel and delete. I'm navigating in save button.

0

There are 0 best solutions below