Skip to content
pubscout

provider_for_redux

9.0.0, released yesterday by glasberg.dev

Allows using the Provider package with AsyncRedux instead of traditional connector widgets.

$ flutter pub add provider_for_redux
Source repository

What it does

Bridges AsyncRedux and Provider by providing AsyncReduxProvider, ReduxConsumer, and ReduxSelector. This allows injecting and consuming the Redux store, state, and dispatch methods using Provider patterns instead of standard connector widgets.

AI-written summary of version 9.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to use AsyncRedux for state management while leveraging Provider for dependency injection or widget consumption.
  • You are migrating a project between AsyncRedux and Provider-based architectures.

Skip it when

  • You are using standard Redux or other state management solutions like Bloc or Riverpod without AsyncRedux.
  • You prefer using standard AsyncRedux connector widgets over Provider.

Strengths

  • Seamless integration between Provider and AsyncRedux.
  • Reduces boilerplate by removing the need for traditional connector widgets.
  • Supports fine-grained rebuilds using ReduxConsumer and ReduxSelector.

Weaknesses

  • Strictly tied to AsyncRedux and Provider ecosystem versions.
  • Requires learning AsyncRedux conventions alongside Provider.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Requires adding async_redux and provider dependencies alongside this package.

Widget build(BuildContext context) => AsyncReduxProvider<AppState>.value(value: store, child: MaterialApp(home: MyHomePage()));

Alternatives

Packages that do the same job and could replace provider_for_redux.

  • bloc

    If you prefer the BLoC pattern for state management instead of Redux.

  • riverpod

    If you want a modern compile-safe dependency injection and state management solution.

Works with

Packages commonly used together with provider_for_redux: ones it builds on, ones built on it, and its own family.