Flutter Cheat sheet

Flutter Help:

// shows all commands for flutter 
$ flutter -h

Flutter Version:

// shows all installed flutter versions
$ flutter --Version

Flutter Channel:

// shows flutter channel. Default is stable channel. If you want to try out new
// features, switch to beta channel
$ flutter channel

Flutter Doctor:

// provides information about your flutter development environment
$ flutter doctor

Flutter Upgrade:

// upgrade Flutter to the newest version
$ flutter upgrade

Flutter Downgrade:

// downgrade flutter to the specific version
$ flutter downgrade <version>

e.g. flutter downgrade v2.3.2

Create new Project:

// Creates a new flutter app project
$ flutter create <app name>

e.g. flutter create "newApp"

Flutter Emulators:

// Shows a list of available devices
$ flutter emulator

Flutter run emulator:

// Start a chosen emulator
$ flutter emulator --launch <emulator_name>

Start the project debug:

// Start the project on an available virtual device, if one is available (debug mode)
$ flutter run

Start the project in release mode:

// Start the project on an available virtual device, if one is available (release mode)
$ flutter run --release

Flutter Clean:

// Clean all files which were created during the build
$ flutter clean

Download project dependencies:

// Download all dependencies of the project
$ flutter pub get

Last updated