MVVM Example with inject_flutter
.
This is the source code to the example app featured in the Medium article "Implementing Model-View-ViewModel in Flutter using inject_flutter."
After cloning this repo, run the following command to get the dependencies:
flutter pub get
Then use the build_runner
tool to generate the necessary code:
dart run build_runner build
This project is currently set up to deploy on the web, or as a MacOS desktop application. To run as a web application, use:
flutter run -d chrome