provider_for_redux
9.0.0, released yesterday by glasberg.dev
Allows using the Provider package with AsyncRedux instead of traditional connector widgets.
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.
Works with
Packages commonly used together with provider_for_redux: ones it builds on, ones built on it, and its own family.
- path_providerprovider_for_redux depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- providerprovider_for_redux depends on itA lightweight wrapper around InheritedWidget for state management
- async_reduxprovider_for_redux depends on itA Redux-inspired state management library for Flutter.