It’s simple: the first Provider provides an instance of a class, for example: LoginManager . The other Provides MessageFetcher . In MessageFetcher , whatever method you have, just add the Context parameter to it and call it by providing a fresh context .3 Eyl 2019
Read moreWhat is a proxy provider in Flutter?
A provider that builds a value based on other providers . The exposed value is built through either create or update , then passed to InheritedProvider.
Read moreWhat is change notifier proxy provider?
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values . To understand better this variation of ChangeNotifierProvider, we can look into the following code using the original provider: ChangeNotifierProvider( create: (context) { return MyChangeNotifier( myModel: Provider.
Read moreWhat is a ProxyProvider?
ProxyProvider is a provider that builds a value based on other providers . This means you can now inject providers into other provided values.12 Haz 2019
Read moreWhat is change notifier proxy provider?
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values . To understand better this variation of ChangeNotifierProvider, we can look into the following code using the original provider: ChangeNotifierProvider( create: (context) { return MyChangeNotifier( myModel: Provider.
Read moreHow do you call a provider without context in Flutter?
“flutter provider without context” Code Answer
Read moreHow do I get context in provider Flutter?
If above solution does not works please try this solution.
Read more