A new Flutter project for learn flutter.
before starting, you need to:
- install flutter
- setup & run iOS simulator / Android emulator
after that, go to this repository and install all the dependencies by using pub package manager:
flutter pub get
to run this project, run iOS simulator / Android Emulator and then run the flutter:
flutter run
to run lint, use this command:
flutter analyze
to run unit testing & widget testing, use this command:
flutter test
for getting test coverage, use this command:
flutter test --coverage
it will create coverage
folder with lcov.info
file inside it. To open the coverage result, lcov
is needed:
brew install lcov
sudo apt install lcov
for generate html result, use this command:
genhtml coverage/lcov.info -o coverage/html
then open coverage/html/index.html
using browser.
To open the result using terminal only, run lcov command:
lcov -l coverage/lcov.info