Member-only story
Do Not Use Package Modules In Flutter Clean Arch Implementations
It might seem wise to use the Flutter Package project template to set up Domain, Data, and other portions of clean architecture for a flutter app; however, there are some real valid devops reasons to choose a better path to Flutter Clean Arch Enlightenment.
Flutter Package Modules
The Flutter SDK framework has the concept of packages:
Basically, it’s dart or both flutter and dart code packaged into a package module that does not have an app binary but can have unit tests. And FFI plugins complicate this by adding the ability to add platform target based app binaries.
It might seem like a useful tool to use this to group Clean architecture layers into some separate packages within the Flutter App project folder. Here are the problems you run into when using that approach to Clean Architecture Layers in flutter apps:
1. Any reports generated such as test reports, code metrics reports are not in the main reports’ folder of the app and have to be merged from…