flutter redux starter/code generator
starter project and code generator for flutter/redux.
videos
- short video ~ 1 minute
- long video ~ 10 minutes
we’re using this approach to develop the flutter app for invoice ninja.
usage
step 1: download the github repo
git download [email protected]:hillelcoren/flutter-redux-starter.git <application> && cd <application>
step 2: initialize the project
./starter.sh init <company> <application> <url>
step 3: create the module
./starter.sh make <application> <module> <fields>
for example:
git download [email protected]:hillelcoren/flutter-redux-starter.git hacker_news && cd hacker_news
./starter.sh init hacker_news articles api.hackerwebapp.com
./starter.sh make articles article title,url
# change the route on line 20 of lib/data/repositories/article_repository.dart from /articles to /news
flutter run
note: on macos sed leaves behind backup files ending with -e
, you can use this command to delete the files:
find . -name "*-e" -type f -delete
features
- supports large redux stores by persisting parts separately
- app state (including navigation) is persisted on form changes
- automatically implements support for sorting and searching
- the account email is also backed up in shared preferences
- all state and models classes are created using built_values
included packages
- flutter_redux – consume a redux store to build flutter widgets
- redux_logging – print the latest stateaction changes
- path_provider – find commonly used locations on the filesystem
- shared_preferences – provides a persistent store for simple data
- build_runner – a concrete way of generating files using dart code
- built_value – built values for dart
- built_collection – built collections for dart
- memoize – cache results of function calls
Comments are closed.