'Flutter error with hero without using animation

  Exception caught by scheduler library ═════════════════════════════════
  The following assertion was thrown during a scheduler callback:

There are multiple heroes that share the same tag within a subtree. 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:

 <default Floating Action Button tag>

Here is the subtree for one of the offending heroes:

Hero tag:

 <default Floating Action Button tag>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source