New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Does StateNotifier works with StreamProvider #29
Comments
You can use the ConnectivityResult lastConnectivity;
@override
void update(Reader watch) {
final connectivity = watch<ConnectivityResult>();
if (connectivity != lastConnectivity) {
lastConnectivity = connectivity;
// TODO API call
}
} |
This works great with |
LocatorMixin works only with StateNotifier |
So, is there any future planning for implementing with ‘Provider’. |
Not for now, no. But PRs are welcomed |
I like that.. 👍 |
Does state_notifier support StreamProvider for watching changes so, for example, I'm trying to listen to connectivity changes.
Here's the example:
The text was updated successfully, but these errors were encountered: