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:
// pubspec.yaml
...
dependencies:
flutter:
sdk: flutter
redux: ">=2.0.0 <3.0.0"
flutter_redux: ">=0.3.0 <0.4.0"
redux_logging: ^0.1.4
...
Now in your terminal:
flutter packages get
当前内容版权归 flutterbyexample.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 flutterbyexample.com .