Skip to content

jamontes79/flutter_good_practices

Repository files navigation

Flutter Good Practices

coverage style: very good analysis License: MIT

Generated by the Very Good CLI 🤖

Flutter Good Practices


Getting Started 🚀

This project is a sample Flutter project applying good practices:

  • SOLID Principles
  • Clean Architecture
  • Clean Code
  • Testing

To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:

# Development
$ flutter run --flavor development --target lib/main_development.dart

# Staging
$ flutter run --flavor staging --target lib/main_staging.dart

# Production
$ flutter run --flavor production --target lib/main_production.dart

*Flutter Good Practices works on iOS, Android, Web, and Windows.


Running Tests 🧪

To run all unit and widget tests use the following command:

$ flutter test --coverage --test-randomize-ordering-seed random

To view the generated coverage report you can use lcov.

# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
$ open coverage/index.html

About

A sample flutter project developed with good practices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published