Issue
How to delete provider controller if we do not need it other time in app?
For example, sign in first time screen , or intro screens ... etc If we do not need it again.
Solution
In the latest version of provider package on pub.dev
which is 6.0.2
we can use read
not watch
. or provider.of(context).(listen: false)
.
Answered By - Mouaz M Shahmeh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.