Skip to content
pubscout

async_redux

30.0.0, released today by glasberg.dev

A Redux-inspired state management library for Flutter.

Uses material_ui
$ flutter pub add async_redux
Source repository

What it does

Provides a Store, Actions, and context extensions to manage immutable app state and dispatch actions.

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

Use it when

  • When you need predictable state management with a unidirectional data flow
  • When you prefer explicit actions and reducers

Skip it when

  • When you want a more reactive or hook-based approach

Strengths

  • Strong typing and immutability
  • Excellent testability
  • Mature and battle-tested
  • Supports async actions and error handling

Weaknesses

  • Verbose boilerplate
  • Learning curve for Redux concepts
  • Not as reactive as hook-based solutions

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
12

Add async_redux to pubspec, create a Store with initial state, wrap the app with StoreProvider, use context.state or context.select in widgets.

var store = Store<AppState>(initialState: AppState('Mary', 25));

Widget build(context) {
  return StoreProvider<AppState>(
    store: store,
    child: MaterialApp(),
  );
}

class MyWidget extends StatelessWidget {
  Widget build(context) => Text('${context.state.name} has ${context.state.age} years old');
}

Alternatives

Packages that do the same job and could replace async_redux.

  • riverpod

    Provides a simpler, hook-friendly state management with less boilerplate

  • bloc

    Offers a reactive, event-driven approach with built-in stream handling

Works with

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