1.2 Install Flutter In MacOS

In this article, we will introduce how to install Flutter in MacOS. System requirements 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 git for installation and upgrade. We recommend installing Xcode, which includes […]

In this article, we will introduce how to install Flutter in MacOS.

System requirements

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 git for installation and upgrade. We recommend installing Xcode, which includes git, but you can also install git separately.

Get the Flutter SDK

  1. Go to flutter official website to download the latest available installation package
  2. Extract the file in the desired location, for example:
    cd ~/development
    unzip ~/Downloads/flutter_macos_x.x.x-stable.zip
  3. Add the flutter tool to your path:
    export PATH<strong>=</strong>"$PATH:`pwd`/flutter/bin"

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):

flutter doctor

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).

For example:

[-] 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.

We will perform these tasks and complete the setup process in the "1.4 Android Setup" and "1.5 IOS Setup" article.

Once you have installed any missing dependencies, you can run the flutter doctor command again to verify that you’ve set everything up correctly.

Author: Hi, I’m iBllex

I am a freelancer. Currently working on Golang, PHP, WordPress, React, Vue, TypeScript, Flutter and other technologies.

Leave a Reply

Your email address will not be published. Required fields are marked *