A new Flutter project, with clean architecture.
This project is my template (27-11-2021) to start new projects, @BinniZenobioCordovaLeandro.
-
UI: Layer in charge of representing data on a device or platform. In our case, it will be all the Flutter code corresponding to our Widgets, pages, navigation ...
-
Data: Layer in charge of communicating with the external dependencies that our app needs to obtain the data. For example, the concrete implementation of the repositories with HTTP calls , Firebase ...
-
Device: Layer in charge of accessing the native functionalities of the device on which our app will run. For example, access to biometrics, use of GPS ...
-
Domain: Layer that encompasses all the business logic of our app, where the code that must be agnostic of any other part of our software is located. In this case, it is pure Dart code.
-
Interface: To carry out this communication between the layers we will use the interfaces.
Principal:
Secondary:
-
DartConf 2018, Flutter / AngularDart – Code sharing, better together
-
Clean architecture and hexagonal architecture, scalar and maintenance
Extras books:
With Mockito, run unit test with:
fvm flutter test test
To do implement.
First start an emulator/simulator or real device, (if you need the camera, for example, need start the application on a real device)
after, run into command line
flutter test integration_test
References: https://youtu.be/WPEsnJgW99M