On clicking on the 'Forgot Password' button on Login Screen a bottom-sheet to appear and the user may choose the method to reset password from the options available. However when the trying to select the option, it's not getting redirected the corresponding page to reset the password in my case the MailPasswordResetScreen
Category
Need Help
Steps to Reproduce the Issue (if applicable)
You can recreate the issue by going to commit 4b1e860 of the Auth-Bloc branch
Then run the auth_main.dart file in lib/auth directory
Environment
Linux
Distribution/Version
Ubuntu 22.04 LTS
Additional Information
══════════════════ Exception caught by gesture ══════════════════
The following ProviderNotFoundException was thrown while handling a gesture:
Error: Could not find the correct Provider above this BottomSheet Widget
This happens because you used a BuildContext that does not include the provider
of your choice. There are a few common scenarios:
You added a new provider in your main.dart and performed a hot-reload.
To fix, perform a hot-restart.
The provider you are trying to read is in a different route.
Providers are "scoped". So if you insert of provider inside a route, then
other routes will not be able to access that provider.
You used a BuildContext that is an ancestor of the provider you are trying to read.
Make sure that BottomSheet is under your MultiProvider/Provider.
This usually happens when you are creating a provider and trying to read it immediately.
Agreement
[X] I agree to follow this project's Code of Conduct
Description
On clicking on the 'Forgot Password' button on Login Screen a bottom-sheet to appear and the user may choose the method to reset password from the options available. However when the trying to select the option, it's not getting redirected the corresponding page to reset the password in my case the
MailPasswordResetScreen
Category
Need Help
Steps to Reproduce the Issue (if applicable)
4b1e860
of theAuth-Bloc
branchauth_main.dart
file inlib/auth
directoryEnvironment
Linux
Distribution/Version
Ubuntu 22.04 LTS
Additional Information
══════════════════ Exception caught by gesture ══════════════════ The following ProviderNotFoundException was thrown while handling a gesture: Error: Could not find the correct Provider above this BottomSheet Widget
This happens because you used a
BuildContext
that does not include the provider of your choice. There are a few common scenarios:You added a new provider in your
main.dart
and performed a hot-reload. To fix, perform a hot-restart.The provider you are trying to read is in a different route.
Providers are "scoped". So if you insert of provider inside a route, then other routes will not be able to access that provider.
You used a
BuildContext
that is an ancestor of the provider you are trying to read.Make sure that BottomSheet is under your MultiProvider/Provider.
This usually happens when you are creating a provider and trying to read it immediately.
Agreement