In this article, we will introduce how to install Flutter in MacOS.
To install and run Flutter, your development environment must meet these minimum requirements:
- Operating Systems: macOS
- Disk Space: 2.8 GB (does not include disk space for IDE/tools).
- Tools: Flutter uses
gitfor installation and upgrade. We recommend installing Xcode, which includes
git, but you can also install
Get the Flutter SDK
- Go to flutter official website to download the latest available installation package
- Extract the file in the desired location, for example:
cd ~/development unzip ~/Downloads/flutter_macos_x.x.x-stable.zip
- Add the
fluttertool to your path:
You are now ready to run Flutter commands!
Run flutter doctor
Run the following command to see if there are any dependencies you need to install to complete the setup (for verbose output, add the -v flag):
This command checks your environment and displays a report to the terminal window. The Dart SDK is bundled with Flutter; it is not necessary to install Dart separately. Check the output carefully for other software you might need to install or further tasks to perform (shown in bold text).
[-] Android toolchain - develop for Android devices • Android SDK at /Users/obiwan/Library/Android/sdk ✗ Android SDK is missing command line tools; download from https://goo.gl/XxQghQ • Try re-installing or updating your Android SDK, visit https://flutter.dev/setup/#android-setup for detailed instructions.
Once you have installed any missing dependencies, you can run the flutter doctor command again to verify that you’ve set everything up correctly.