The project can be launched from the IDE or via command line. You will need the flutter SDK downloaded.
- 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
To fetch the latest dependencies run flutter packages get
in the project directory.
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.
- 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.
- Install the official Dart plugin for IntelliJ
- Install the official Flutter plugin for 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.