- This project is a water tracker app connected to Firebase.
- The app is fully supported on iOS and Android.
- The app is built using the Firebase authentication and Firestore database.
- The app uses others Firebase Services such as Cloud Messaging, Crashlytics, Remote Config, etc.
- The covered with Unit Tests, Widget Tests and Integration Tests.
water_tracker.mp4
- Clone the project
$ git clone https://github.com/extrawest/flutter_firebase_water_tracker.git
- Install dependencies
$ flutter pub get
- Configure Firebase
$ flutterfire configure
- Run the app
$ flutter run
- Optional but highly recommended to setup pre-push hook
- Initialize git repository if you haven't already
$ git init
- add sh script to git hooks
$ ln -s pre-push.sh .git/hooks/pre-push
- To run all test
$ flutter test
- To generate codecovarege:
- Run test with additional flag
this results into coverage/lcov.info file creation$ flutter test --coverage
- Generate html file using previosly generated lcov file
$ genhtml coverage/lcov.info -o coverage/html
- Use coverage/html/index html to view current project's codecoverage
- In order to run shader warm ups use:
$ flutter drive --profile --cache-sksl --write-sksl-on-exit sksl_shader01.json --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart
Extrawest.com, 2023