Build Status

Usage

ReduxProvider usage:

runApp(ReduxProvider(
	store: new Store(
      createReducer(),
      State(),
      StateActions(),
    ),
	child: child,
));

useReduxActions usage:

HookBuilder(
  builder: (context) {
    MyActions actions = useReduxActions<MyActions>();

    return RaisedButton(
        onPressed: () => actions.someAction(),
        child: new Text('dispatch action'),
    ),
  },
)

useReduxActions usage:

HookBuilder(
  builder: (context) {
    SubState sub = useReduxState<State, SubState>((s) => s.sub);
    return Text(sub.textProp);
  },
)

Libraries

flutter_built_redux_hooks