Home > front end >  Flutter when i m trying to navigate to another page i got this error 'There are multiple heroes
Flutter when i m trying to navigate to another page i got this error 'There are multiple heroes

Time:12-01

Here is my code, how can i solve that? enter image description here

enter image description here enter image description here

CodePudding user response:

you are using Hero widget in your screens and have the same tag, search for Hero in your screen and give it different tag or remove it

CodePudding user response:

please refer to this example may be you have given one herotag to 2 different widgets.

There are multiple heroes that share the same tag within a subtree

refer to above link for example

  • Related