Open Weather Flutter project.
-
Change Production and Development environment value on lib/envs folder File Locations:
lib/envs/development.dart
andlib/env/production.dart
-
Change the GoogleMapApiKey value inside android folder File Location:
android/key.properties
-
Check your active Devices or Simulators
flutter devices
It will shows a result like this (the example is using real device): 1 connected device: SM A310F • 31003f38ffcb8215 • android-arm • Android 7.0 (API 24) -
Select Device or Simulator ID from the result above and Run Flutter
flutter run -t [YOUR_ENVIRONMENT_FILE] -d [DEVICE_ID]
example:flutter run -t lib/envs/development.dart -d 31003f38ffcb8215