MawiraIke / flutter-commands

Common flutter commands to install, run and build Flutter and Dart projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter-commands

Flutter image!

Common flutter commands to install, run and build Flutter and Dart projects

Install Flutter

Step One

To install flutter follow the directions below as per the different OS.

Windows

  1. Official link at Docs
  2. Download Bundle
  3. Extract the zip file and place the contained flutter in the desired installation location for the Flutter SDK (for example, C:\src\flutter; do not install Flutter in a directory like C:\Program Files\ that requires elevated privileges.
  4. Append flutter/bin to environment variables.
  5. Run flutter doctor.
flutter doctor

MacOS

  1. Official link at Docs
  2. Download Bundle
  3. Extract the file in the desired location, i.e,
unzip ~/Downloads/flutter_macos_v1.9.1+hotfix.2-stable.zip
  1. Add flutter tool to your path, i.e,
export PATH="$PATH:`pwd`/flutter/bin"
  1. Run flutter doctor.
flutter doctor

Linux

  1. Offical link at Docs
  2. Download Bundle
  3. Extract the file to the desired location, i.e,
tar xf ~/Downloads/flutter_linux_v1.9.1+hotfix.2-stable.tar.xz
  1. Add flutter tool to your path, i.e,
export PATH="$PATH:`pwd`/flutter/bin"
  1. Run flutter doctor.
flutter doctor

Set up an editor

  1. You can use the editor of your choice, but the most common are,

    1. Android Studio
    2. IntelliJ IDEA Community
    3. IntelliJ IDEA Ultimate (Paid)
    4. Visual Studio Code
  2. Install Flutter and Dart plugins.

  3. Create your first flutter project.

About

Common flutter commands to install, run and build Flutter and Dart projects