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
47
votes
5 answers

ChangeNotifierProvider vs ChangeNotifierProvider.value

I am quite new to this framework and working on state management using provider package where I come across ChangeNotifierProvider and ChangeNotifierProvider.value, but I am unable to distinguish their use case. I had used ChangeNotifierProvider in…
Avnish Nishad
  • 1,634
  • 1
  • 17
  • 18
34
votes
2 answers

When to use javax.inject.Provider in Spring?

What it does is pretty simple: @Inject private Provider productService; The Product service is available through productService.get() and .get() will resolve the instance from the Spring context on each call. But when should I use…
Tarion
  • 16,283
  • 13
  • 71
  • 107
32
votes
5 answers

Error installing provider "aws": openpgp: signature made by unknown entity

I am using terraform version 0.11.13, and this afternoon I am getting the following error in terraform init step Does it mean I've to upgrade the terraform version, is there a deprecation for this version for aws provider? Full logs: Successfully…
27
votes
5 answers

Mock or simulate Message Queue (JMS)

There is a message(text), which format and content i definitely know. For now,class in Java,that parses and reads this message from file,is implemented. In real world, this message will come from Message Queue. For now I should simulate, mock or…
sergionni
  • 13,290
  • 42
  • 132
  • 189
26
votes
3 answers

Using Flutter Provider means no StatefulWidgets?

I'm getting ready to write my first nontrivial app with Flutter and Provider. I've read up on how Provider facilitates immutable widgets (StatelessWidgets). My question is, is it always an antipattern to use StatefulWidgets when using Provider? If…
buttonsrtoys
  • 2,359
  • 3
  • 32
  • 52
24
votes
1 answer

Angular2's provide() function deprecated in RC4 and later, what should be used instead?

I just upgraded from Angular2 RC1 to RC4. Before I used: provide(LocationStrategy, {useClass: HashLocationStrategy}) However, after upgraded to RC4, the provide shows as deprecated. I did not find any documentation on this. Does anyone have an idea…
kdu
  • 1,259
  • 4
  • 12
  • 18
21
votes
3 answers

How to avoid unnecessary rebuilds while using provider in flutter?

I am using provider in my app, but I faced with unnecessary building. Example class AllWidget extends StatelessWidget{ @override Widget build(BuildContext context){ print('state build called'); return ChangeNotifierProvider( …
Muhammad
  • 2,572
  • 4
  • 24
  • 46
21
votes
12 answers

toResponse in jersey ExceptionMapper does not get invoked

So I'm building a web application, we are using JPA and Jersey to consume/produces JSON data. I have a custom "EntityException" aswell as a custom "EntityExceptionMapper" Here's the mapper: @Provider public class EntityExceptionMapper implements…
alex
  • 343
  • 1
  • 2
  • 8
20
votes
3 answers

ADO.NET Entity Framework with OLE DB Access Data Source

Has anyone found a way to make the ADO.NET Entity Framework work with OLE DB or ODBC data sources? Specifically, I need to work with an Access database that for various reasons can't be upsized to SQL. This MSDN page says: The .NET Framework…
Tim Long
  • 13,508
  • 19
  • 79
  • 147
19
votes
3 answers

Riverpod : Alternate way of overriding initState inside ConsumerWidget

What is the solution of initializing things inside consumerWidget as because the initState method is not overridable here?
towhid
  • 2,778
  • 5
  • 18
  • 28
18
votes
5 answers

Documentation for creating a Custom Credential Provider in Windows

Where is the documentation on creating a custom Windows Credential Provider located? Everything I've found so far points to the same article on how to make a custom credential provider (MSDN Magazine: "Create Custom Login Experiences With…
kberson
  • 439
  • 1
  • 3
  • 8
18
votes
8 answers

The argument type 'Widget Function(BuildContext)' cant be assigned to the parameter type 'Widget Function(BuildContext, Widget)' Error in Flutter

This is a code: import 'package:flutter/material.dart'; import 'package:flutterapp/ui/pages/notes_home.dart'; import 'package:provider/provider.dart'; import 'package:flutterapp/ui/pages/splash.dart'; import…
Rohit Chaure
  • 181
  • 1
  • 1
  • 5
18
votes
6 answers

Flutter provider in initState

I'm currently trying Provider as a state management solution, and I understand that it can't be used inside the initState function. All examples that I've seen call a method inside a derived ChangeNotifier class upon user action (user clicks a…
user6097845
  • 1,257
  • 1
  • 15
  • 33
18
votes
3 answers

AngularJs/ .provider / how to get the rootScope to make a broadcast?

Now my task is to rewrite $exceptionHandler provider so that it will output modal dialog with message and stop default event. What I do: in project init I use method .provider: .provider('$exceptionHandler', function(){ //and here I would like to…
Stepan Suvorov
  • 25,118
  • 26
  • 108
  • 176
17
votes
4 answers

ASP.NET Active Directory Membership Provider and SQL Profile Provider

I am currently designing a Membership/Profile scheme for a new project I am working on and I was hoping to get some input from others. The project is a ASP.NET web application and due to the short time frame, I am trying to use any and all built in…
cmcginty
  • 235
  • 1
  • 3
  • 9
1
2 3
99 100