Skip to content

Latest commit

 

History

History
74 lines (42 loc) · 1.95 KB

README.md

File metadata and controls

74 lines (42 loc) · 1.95 KB

Survey Flutter

codecov

Prerequisite

  • Flutter 3.10.5
  • Flutter version manager (recommend): fvm

Getting Started

Usage

Checkout the repository

git clone [email protected]:nimblehq/flutter-ic-khanh-thieu.git

Setup

  • Create these .env files in the root directory according to the flavors and add the required environment variables. The example environment variable is in .env.sample.

    • Staging: .env.staging

    • Production: .env

Run

  • Run code generator for JSON models, DI dependencies, etc:

    • $ fvm flutter packages pub run build_runner build --delete-conflicting-outputs
  • Run the app with the desired app flavor:

    • $ fvm flutter run --flavor staging
    • $ fvm flutter run --flavor production
  • Check code formatting & static code analyzing:

    • $ dart format --set-exit-if-changed .
    • $ fvm flutter analyze .

Test

  • Run unit testing:

    • $ fvm flutter test
    • $ fvm flutter test --machine --coverage
  • Run integration testing:

    • $ fvm flutter drive --driver=test_driver/integration_test.dart --target=integration_test/{test_file}.dart --flavor staging

    • For example:

      $ fvm flutter drive --driver=test_driver/integration_test.dart --target=integration_test/my_home_page_test.dart --flavor staging

License

This project is Copyright (c) 2014 and onwards. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About

Nimble

This project is maintained and funded by Nimble.

We love open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.