flutter error, A Hero widget cannot be the descendant of another Hero widget.

Опубликовано: 01 Октябрь 2024
на канале: Code with Benji
390
3

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══
The following assertion was thrown building Hero(tag: default FloatingActionButton tag, dirty,
state: _HeroState#81be5):
A Hero widget cannot be the descendant of another Hero widget.

this flutter error happens when you try to wrap the FloatingActionButton inside a Hero Widget