Skip to content

MohammedShehata/flutter-training

Repository files navigation

Flutter Training

Flutter training project that has the main concepts of an application:

  • Bloc architecture
  • List/Details views
  • Network Apis
  • Flavors
  • Localization
  • Text styling

Getting Started 🚀

This project contains 3 flavors:

  • development
  • staging
  • production

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 Training 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

Change App Icons

you can change it manually check this.


Handling RTL in the design

use the suffix Directional for paddings and alignment(that has a start instead of left and end instead of right) eg: EdgeInsetsDirectional, BorderRadiusDirectional, AlignmentDirectional,....


Resources


Useful Plugins Used

About

Flutter training app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published