Top "Flutter-provider" questions

For questions relating to the "Provider" package for the Flutter framework.

How to use flutter provider in a statefulWidget?

I am using flutter_provider for state management. I want to load some items on page(statefulwidget) load from Api. …

flutter flutter-provider
When to use Provider.of<X> vs. Consumer<X> in Flutter

I'm still wrapping my head around state-management techniques in flutter and am a bit confused about when and why to …

flutter dart flutter-provider
Flutter Provider setState() or markNeedsBuild() called during build

I want to load a list of events and display a loading indicator while fetching data. I'm trying Provider pattern (…

flutter dart flutter-provider
Could not find the correct Provider - Flutter

@override Widget build(BuildContext context) { return WillPopScope( onWillPop: () async { return false; }, child: Stack( children: <Widget>[ DefaultTabController( length: 5, child: …

flutter dart flutter-provider
Could not find the correct provider above this widget

I have a problem using Flutter Provider... My flow is like this: After login user id is passed to new …

flutter dart flutter-provider
Flutter problem with finding provider context

I have a problem with Flutter Provider pattern. After user is redirected to a new screen, the provider could not …

flutter dart flutter-provider
Error: Could not find the correct Provider above this widget

This screen is a Drawer screen which take the auth bloc in order to provide user the info and enable …

flutter flutter-provider
Setting provider value in FutureBuilder

I have a widget that makes a request to an api which returns a map. What I would like to …

flutter dart flutter-provider
The method '[ ]' was called on null

I am running my app and getting the error: "NoSuchMethodError: The Method '[ ]' was called on null. Receiver: null. …

firebase flutter consumer flutter-provider
Flutter imports : relative path or package?

In Flutter, for importing libraries within our own package's lib directory, should we use relative imports import 'foo.dart' or …

flutter dart flutter-provider