Should I install redux if I already have installed flutter_redux

Issue

I was setting up my app to use redux and had just installed flutter_redux but noticed that class Store was not found to import which should be passed to StoreProvider. After installing redux package separately, imports were available. The site says that redux is a dependency of this library so why should I install redux separately?

Solution

flutter_redux is a package for flutter side and can call builder after state change
and redux package is a dart side package for handle state and you should add fultter_redux and redux to your dependency

A set of utilities that allow you to easily consume a Redux Store to
build Flutter Widgets.

This package is built to work with Redux.dart 3.0.0+.

Answered By – veneno

Answer Checked By – Pedro (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *