flutter_hooks_async_redux 1.0.2 copy "flutter_hooks_async_redux: ^1.0.2" to clipboard
flutter_hooks_async_redux: ^1.0.2 copied to clipboard

Combines flutter_hooks and async_redux packages to add Redux to flutter_hooks

example/main.dart

import 'package:flutter_hooks_async_redux/flutter_hooks_async_redux.dart';

class AppState {
  final String username;

  const AppState({this.username = ''});
}

T useAppState<T>(T Function(AppState state) converter, {bool distinct = true}) =>
    useSelector<AppState, T>(converter, distinct: distinct);

void main() {
  var state = useAppState((state) => state);
}
4
likes
0
pub points
55%
popularity

Publisher

verified publisherglasberg.dev

Combines flutter_hooks and async_redux packages to add Redux to flutter_hooks

Repository (GitHub)
View/report issues

Topics

#redux #hooks #state-management

License

unknown (license)

Dependencies

async_redux, flutter, flutter_hooks

More

Packages that depend on flutter_hooks_async_redux