Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.71 KB

running.md

File metadata and controls

32 lines (21 loc) · 1.71 KB

Running

The project can be launched from the IDE or via command line. You will need the flutter SDK downloaded.

Get the SDK

  • Download the latest flutter SDK and add flutter to your path using export PATH={flutter SDK path}/bin:$PATH
  • Switch to the stable channel if you are not using it already by running flutter channel stable

Get pub packages

To fetch the latest dependencies run flutter packages get in the project directory.

Build runner

We depend on build runner to generate our json serialization methods. This will need to run this when we first checkout the project or after changing a model.

After getting packages run flutter pub run build_runner build in the project directory. you should see *.g.dart files generated as a result.

You can use flutter pub run build_runner watch during development.

Running via command line

  • Check connected devices with command flutter devices
  • Use flutter run to launch the app on the default listed device
  • Access Dart VM observer from http://127.0.0.1:8100/

If any of the above steps fail you can use the flutter doctor command to check if there are any dependencies you need to install to complete the setup.

Running via IntelliJ

These plugins provide GUI options for fetching packages, running on devices, debugging and more.

If you're having issues running the app on a simulator use the flutter doctor command to check if there are any dependencies you need to install to complete the setup.