flutter_built_redux_hooks 0.1.2

Flutter Android iOS web

Set of hooks that provide or connect to your redux store

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);
  },
)
0
likes
90
pub points
10%
popularity

Set of hooks that provide or connect to your redux store

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

smillgit@gmail.com

License

MIT (LICENSE)

Dependencies

built_redux, flutter, flutter_hooks, provider

More

Packages that depend on flutter_built_redux_hooks