You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
For example: in the code below, how to use counter and switcher in one widget?
Neither Provide.value<T> or StreamBuilder<T> seems to be fited for this.
var counter = Counter();
var switcher = Switcher();
var providers = Providers();
providers
..provide(Provider<Counter>.value(counter))
..provide(Provider<Switcher>.value(switcher));
runApp(
ProviderNode(
child: MyApp(),
providers: providers)
);
The text was updated successfully, but these errors were encountered:
returnProvide< Counter >(builder: (context, child, counter) {
returnProvide< Switcher >(builder: (context, child, switcher) {
// your can use counter and switcher both here
});
});
Sorry for the complete silence on this issue (and the repo in general). I've been unsure about the future of the provide package but now I've made the decision to let it go: #3 (comment). Please comment over at the linked issue if you have a strong desire to keep the development of this package alive (if so, please link to your fork if you have it).
To be clear, the package will always be available at https://pub.dev/packages/provide — pub doesn't allow packages to "disappear". It won't be updated, though.
For example: in the code below, how to use
counter
andswitcher
in one widget?Neither
Provide.value<T>
orStreamBuilder<T>
seems to be fited for this.The text was updated successfully, but these errors were encountered: