These are some of the useful terminal commands used when developing Flutter apps. Supported IDE's have Flutter plugins, so it's as easy as pressing a run button in the IDE.
flutter --version
open -a Simulator
flutter emulators --launch [DeviceID]
Starts up the emulator, installs and opens up your Flutter app.
flutter emulators
If you don't know the DeviceID
, you can run this to get the list of your available emulators.
flutter run -d [DeviceID]
Starts the project on either an emulator or device. Depending on the specified DeviceID
.
flutter run -d [DeviceID] --flavor=[flavor]
To run on Android with more that one build flavor, please specify flavor
.
flutter devices
If you don't know the DeviceID
, you can run this to get the list of your available devices that have already been started or connected to the computer.