Skip to content

BinniZenobioCordovaLeandro/bloc_clean_architecture

Repository files navigation

Flutter 2.5.3

clean_architecture

A new Flutter project, with clean architecture.

Getting Started

This project is my template (27-11-2021) to start new projects, @BinniZenobioCordovaLeandro.

image info

Tree

  • 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.

References:

Principal:

Secondary:

Extras books:

How run Unit test ?

With Mockito, run unit test with:

    fvm flutter test test

How run Widgets test ?

To do implement.

How run Integration test ?

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

About

A flutter template, with clean architecture

Resources

Stars

Watchers

Forks

Packages

No packages published