Questions tagged [provider]

DO NOT USE — this tag is being cleaned up. Use [android-contentprovider], [flutter-provider], [provider-model], or whatever more specific tag is appropriate instead.

DO NOT USE — this tag is being cleaned up. Instead, use:

1714 questions
17
votes
5 answers

Access restriction on sun.security.pkcs11.SunPKCS11

I'm trying to setup a PKCS11 provider for accessing a smartcard. I installed a PKCS11 library on my system and followed the instructions in the Java PKCS#11 Reference Guide. In the reference they simply create an instance of…
Marc-Christian Schulze
  • 3,154
  • 3
  • 35
  • 45
17
votes
6 answers

GPS isProviderEnabled always return false

I've got this code lm = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); boolean isGPS = lm.isProviderEnabled (LocationManager.GPS_PROVIDER); and it always return false, even when GPS is enabled. GPS is working correctly but I'm…
Lau
  • 1,804
  • 1
  • 23
  • 49
16
votes
2 answers

Flutter AnimatedList with Provider Pattern

I have model which implements ChangeNotifier class DataModel with ChangeNotifier{ List data = List(); void addData(Data data){ data.add(data); notifyListeners(); } } and a ListView which listens to those…
Claude Hasler
  • 396
  • 1
  • 14
16
votes
1 answer

Flutter-web: Provider loss of state when browser refresh

so I'm wondering why does the provider loses state on browser refresh. Doesn't it suppose to keep state after refreshing/reloading? Would Really appreciate the Help default project for flutter home: ChangeNotifierProvider( create:…
Dean Villamia
  • 576
  • 11
  • 24
16
votes
7 answers

Understand how listen: false works when used with Provider.of(context, listen: false)

I'm working through understanding how the Provider package works with Flutter but confused on how listen:false works. I wrote some basic code using the usual Counter example from a new Flutter project. I created three types of stateless widgets…
Joe Nalewabau
  • 165
  • 1
  • 1
  • 5
16
votes
2 answers

using asp.net membership provider how to check if the user is registered or not?

using asp.net and c# membership provider how to check if the user is registered or not? I want to handle this in code not by using "login status"?
ahmed
  • 14,316
  • 30
  • 94
  • 127
16
votes
3 answers

Content provider grant uri permission

I searched and read android developer files but I did not find any satisfactory answer for content provider grant uri permission. Can anybody explain more detailed and more simple. My questions are: What grant uri is using for? What is the…
Android
  • 161
  • 1
  • 1
  • 3
15
votes
2 answers

How to implement a custom cache provider with ASP.NET MVC

I am migrating a MonoRail application to ASP.NET MVC 1.0. In my original application I wrote a custom cache provider (a distributed cache provider using memcached). In MonoRail this task was very easy because the framework used interfaces and there…
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
15
votes
3 answers

What is the purpose of child in Consumer Provider Flutter

I have a question about Consumer, of Provider package, in Flutter. I don't understand the purpose of argument "child" in the builder of Consumer Consumer(builder: (context, myModel, child) { // doing stuff using myModel variable }); I…
Dimitri Leurs
  • 590
  • 5
  • 19
14
votes
4 answers

WARNING -Provider resources not accessible running wevtutil

I need help solving the "Provider '' resources not accessible when trying to create a windows event provider. I create my manifest file with the ManGen utility, and name my '.exe' file as my message and resource file. I compile the '.rc' file with…
Robert G
  • 149
  • 1
  • 6
13
votes
2 answers

Flutter Provider Nested Objects

I'm using the Provider Package to manage state in my Flutter App. I am running into issues when I start nesting my objects. A very simple example: Parent A has child of type B, which has child of type C, which has child of type D. In child D, I…
JBM
  • 463
  • 2
  • 5
  • 16
13
votes
3 answers

Laravel service provider is not found

When I access laravel, it said Symfony \ Component \ Debug \ Exception \ FatalErrorException 'Krucas\Notification\NotificationServiceProvider' Not found The Website locations is http://somedomain.com/index.php It's document physical path is…
Peter Hon
  • 257
  • 3
  • 4
  • 14
12
votes
3 answers

About errors that occur in flutter's provider

I'm learning about flutter's provider and I'm suffering from one error. The following code works. [code1] class Model extends ChangeNotifier { void save() { print('save'); } } class Main extends StatelessWidget { @override Widget…
日高岳大
  • 196
  • 1
  • 1
  • 10
12
votes
1 answer

Flutter Provider: Provide 2 streams with one dependent on the other

I'm using the provider package. In the root of the widget tree I have a multiprovider: Widget build(BuildContext context) { return MultiProvider( providers: [ StreamProvider.value( value:…
Isaak
  • 1,107
  • 2
  • 11
  • 29
12
votes
1 answer

Can it is possible to allow user for multiple selection of file in storage access framework..?

After clicking on a button i am getting the content from provider Intent i = new Intent(Intent.ACTION_OPEN_DOCUMENT); i.addCategory(Intent.CATEGORY_OPENABLE); i.setType("image/*"); startActivityForResult(i,…
SAM
  • 399
  • 2
  • 9