context_provider 0.0.3+1 context_provider: ^0.0.3+1 copied to clipboard
Flutter context provider to provide state with reducer combined as map of type and the reducer. Along with the useSelector hook and useDispatch hook.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add context_provider
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
context_provider: ^0.0.3+1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:context_provider/context_provider.dart';