flutter error, tried to listen to a value exposed with provider, from outside of the widget tree.

Опубликовано: 05 Ноябрь 2024
на канале: Code with Benji
743
5

Exception caught by gesture,
Tried to listen to a value exposed with provider, from outside of the widget tree.
This is likely caused by an event handler (like a button's onPressed) that called
Provider.of without passing `listen: false`.
It is unsupported because may pointlessly rebuild the widget associated to the
event handler, when the widget tree doesn't care about the value.



flutter errors