Flutter Redux Setup

Using Redux in Flutter is as easy as installing the dependancy libraries. We'll be using the Dart redux package as well as the Flutter Redux packacge.

Open up your pubspec.yaml file and add the dependencies. Your dependency section will look like this, starting on line 4:

  1. // pubspec.yaml
  2. ...
  3. dependencies:
  4. flutter:
  5. sdk: flutter
  6. redux: ">=2.0.0 <3.0.0"
  7. flutter_redux: ">=0.3.0 <0.4.0"
  8. redux_logging: ^0.1.4
  9. ...

Now in your terminal:

  1. flutter packages get