Flutter sandbox project rendering beers from Punk API using
a clean architecture with MVVM pattern (with ViewModel
).
Each feature directory contains following structure:
/feature
/data
/datasource
/model
/repository
/domain # Should NEVER depend on `data` or `presentation`
/model
/repository
/usecase
/presentation
/model
/viewmodel
/widget
On any change to Retrofit API or test mock, run following command:
flutter pub run build_runner build
To execute app tests, simply run following command:
flutter test