Important Commands in Flutter

$ flutter create --androidx -t app --org
com.companyname.packagename -a java -i swift appname
  1. flutter creates: This command is used for creating a flutter project from scratch.
  2. — androidx: Here, we are adding androidx support libraries so we can easily migrate our project to androidx.
  3. -t app: -t stands for “Type”. -t specifies which type of project you want to create. -t has three types app, package, and plugin.
  • app: default flutter application
  • package: create a sharable flutter project which has modular code.
  • plugin: to create a platform-specific plugin
$ flutter run
$ flutter run --profile
$ flutter run --release
$ flutter run --flavor
$ flutter run --debug
$ flutter doctor
$ flutter upgrade
$ flutter build apk
$ flutter pub get
$ flutter devices
$ flutter clean

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store