Todo List example, modularizing MVVM, managing data and state with Redux. Sample show how to make a reasonable network to call API, processing data, refresh the view reactive. also tell what does Redux do and how it works in a Flutter app.
- master:call API with a static function ,The advantage is that the structure is simple, but it is not possible to write unit tests for the API, which is suitable for personal rapid development experience.
- plus:Redux joins MiddleWare, and Reducer uses combineReducers to cut into smaller granularity, making it easier to write UT for the reducer. The complexity is somewhat improved, but the structure is more rigorous, and it is convenient to use a more comprehensive UT to ensure the quality of the software in the iteration.
//1.pull code
git clone git@github.com:hyjfine/flutter_redux_sample.git
//2.check env
flutter channel stable
//3.install lib
flutter packges get
//4.run
open project by Android Studio or VS code,just run app!
MIT licensed,star & PR 👏
Thanks to the author of Redux with dart and his flutter_architecture_samples。