How to install Flutter on Windows and macOS
System requirements
For Windows users:
- You’d need Windows 7 SP1 or later (64-bit) for installation of flutter.
Download the Flutter SDK
- As of writing this article, latest stable version of Flutter SDK is v.1.2.1. You may download it from here.
- Unzip or extract ZIP file to desired installation location.
For Windows users:
- Avoid installing Flutter in directory like
C:\Program Files\
that may require some privileges. - Locate
flutter_console.bat
insideflutter
directory. Start it by double-clicking.
For MacOS users: You may use following commands to unzip downloaded file:
cd ~/development
$ unzip ~/Downloads/flutter_macos_v1.2.1-stable.zip
Update your PATH variable
For Windows users:
- Type ‘env’ in Start search bar and select Edit environment variables for your account.
- Check if there is an entry called Path under User variables.
• If entry does exist, add full path toflutter\bin
using;
as separator from existing values. For example: If you have extracted flutter SDK toC:\src\
then you need to add:C:\src\flutter\bin
to the entry.
• If entry does not exist, create new user variable named Path with full path toflutter\bin
as its value.
Close and reopen any existing console windows for these changes to take effect.
For MacOS users:
- Open Terminal and run
$HOME/.bash_profile
. - Add path to
flutter\bin
using:
as separator from existing value (which is represented by$PATH
).
export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin"
3. Run source $HOME/.bash_profile
to refresh the current window.
4. You may verify that flutter/bin
is now added to your PATH by running:
$ echo $PATH
Developers from China
If you are from China, then you’d like to see Simplified Chinese version of Flutter website available at https://flutter-io.cn.
If you’d like to install Flutter using an installation bundle, you can replace the domain of the original URL with a trusted mirror.
For example:
For Windows users:
Hope you liked this article!
Medium does not allow Indian writers to monetize currently 😭. Please support this blog by contributing here: https://www.patreon.com/malwinder 🥰
Even a small contribution would help 😍
If you have any questions, then please write down a response in the response section.
If you liked this article, then please press the 👏 icon.
Thank you!
Peace! 🙂