$ flutter run
// if only one device
$ flutter run -d device_name
// when more than one device
// device name is first bullet.
Eg. $ flutter run
More than one device connected; please specify a device with the '-d ' flag, or use '-d
all' to act on all devices.
Redmi 3S • a52fd4097d43 • android-arm64 • Android 6.0.1 (API 23) Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
$ flutter run -d a52fd4097d43
$ flutter run --fast-start
// debug your apps faster by quickly bootstrap applications on
// Android devices if you are using dev/master channel.
$ flutter create project_name
// flutter create calculator_app
$ flutter pub get
// after adding a package.
emulator -avd avd_name
emulator -list-avds
emulator -avd Pixel_2_API_28
$ flutter upgrade
// Flutter has four release channels: stable, beta, dev, and master. // It's recommended to use the stable channel unless you need a more recent release.
$ flutter channel channel_name
update flutter package to latest. Then use command.
$ flutter create --platforms=windows,macos,linux .
If org error then use this way.
$ flutter create --platforms=windows --org=app_package_name .