luongvo / flutter-survey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lint & Test codecov

flutter_survey

A new Flutter project.

Prerequisite

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

Getting Started

Setup

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

    • Staging: .env.staging

    • Production: .env

  • Run code generator

    • $ fvm flutter packages pub run build_runner build --delete-conflicting-outputs

Run

  • Run the app with the desire app flavor:

    • Staging: $ fvm flutter run --flavor staging

    • Production: $ fvm flutter run --flavor production

Test

  • Run unit testing:

    • $ fvm flutter test .
  • Run integration testing with emulator:

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

About


Languages

Language:Dart 96.8%Language:HTML 1.7%Language:Ruby 1.2%Language:Swift 0.2%Language:Kotlin 0.1%Language:Objective-C 0.0%