I have been struggling with an issue for a few weeks now and can’t seem to resolve it. I’m working on a Flutter application that uses the provider package for state management. I’m encountering a ProviderNotFoundException when trying to access my BalanceNotifier provider.
Error Message:
The following ProviderNotFoundException was thrown while handling a gesture:
Error: Could not find the correct Provider above this Builder Widget
This happens because you used a BuildContext
that does not include the provider.
1