Common flutter commands to install, run and build Flutter and Dart projects.
To install flutter follow the directions below as per the different OS.
- Official link at Docs
- Download Bundle
- 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.
- Append flutter/bin to environment variables.
- Run flutter doctor.
flutter doctor
unzip ~/Downloads/flutter_macos_v1.9.1+hotfix.2-stable.zip
- Add flutter tool to your path, i.e,
export PATH="$PATH:`pwd`/flutter/bin"
- Run flutter doctor.
flutter doctor
tar xf ~/Downloads/flutter_linux_v1.9.1+hotfix.2-stable.tar.xz
- Add flutter tool to your path, i.e,
export PATH="$PATH:`pwd`/flutter/bin"
- Run flutter doctor.
flutter doctor
-
You can use the editor of your choice, but the most common are,
-
Install Flutter and Dart plugins.
-
Create your first flutter project.
- Flutter documentation, here