Skip to content

This project is a PoC of flutter with clean architecture following @ResoCoder tutorials.

License

Notifications You must be signed in to change notification settings

jmalovera10/flutter-clean-architecture

Repository files navigation

Flutter Clean Architecture

Architecture

architecture diagram

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Generating Code

To generate a mocking class using Mockito @GenerateMocks annotation you and to genereate dependency injection configurations can execute in your terminal

flutter pub run build_runner watch --delete-conflicting-outputs

Bear in mind that the watch flag will be waiting and updating on the changes you make in your code. If you don't want this behaviour you can remove that flag.

Testing

To test the application you can use the VSCode tool for Flutter or execute the VSCode command Dart: Run all tests after running ctrl + shift + p.

Insights

  • In some cases testing could be done with mocktail package since it is a wrapper of mockito that works with Dart 2.0.^ and allows the usage of null safety features without breaking the testing code.

About

This project is a PoC of flutter with clean architecture following @ResoCoder tutorials.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages