To install and run Flutter on macOS system, you need first to meet these requirements for your development environment.
| Operating System | macOS (64-bit) |
| Disk Space | 2.8 GB (It does not include disk space for IDE/tools). |
| Tools | bash curl git 2.x mkdir rm unzip which |
| IDE | Xcode (Official) |
Get the Flutter SDK
Step 1: Download the installation bundle of the Flutter Software Development Kit for macOS. To download Flutter SDK, Go to its official website.
Step 2: When your download is complete, extract the zip file and place it in the desired installation folder or location.
Step 3: To run the Flutter command, you need to update the system path to include the flutter bin directory.
- $ export PATH=”$PATH:`pwd`/flutter/bin”
Step 4: Next, enable the updated path in the current terminal window using the below command and then verify it also.
- source ~/.bashrc
- source $HOME/.bash_profile
- echo $PATH
Step 5: Now, run the $ flutter doctor command. This command checks for all the requirements of Flutter app development and displays a report of the status of your Flutter installation.
- $ flutter doctor
Step 6: When you run the above command, it will analyze the system and the details of all missing tools, which required to run Flutter as well as the development tools that are available but not connected with the device.
Step 7: Install the latest Xcode tools if reported by the Flutter doctor tool.
Step 8: Install the latest Android Studio and SDK, if reported by the Flutter doctor tool.
Step 9: Next, you need to set up an iOS simulator or connect an iPhone device to the system for developing an iOS application.
Step 10: Again, set up an android emulator or connect an android device to the system for developing an android application.
Step 11: Now, install Flutter and Dart plugin for building Flutter application in Android Studio. These plugins provide a template to create a Flutter application, give an option to run and debug Flutter application in the Android Studio itself.
Leave a Reply