Conversation

Another thing I have started doing is putting tests right beside the source files and running them with the following command: flutter test lib/**/*_test.dart
1
2
Replying to
This may seem like a lot for just the default counter app, but I wanted to showcase the ease of deployment of the business logic. Once you have the logic done you just need to render it and trigger state changes.
1
2
Even riverpod is completely optional here, but it does make exposing classes very nice. I have started to include a 'module.dart' containing all the classes I want to expose for a directory and using the riverpod generator to save some boilerplate.
1
1
Adding to the app should be easy since you can define new use cases, add new sources (or implementations) and new repositories. Something that stuck with me after reading Clean Architecture book is that it doesn't matter what kind of app you are building for this
1