Setting Up Flutter on Mac
2 min readJan 7, 2021
Flutter Introduction
flutter is a free open source mobile UI framework created by Google. It allows you to create a native mobile application with only one codebase which means that you can build an app on iOS and Android using one codebase (one language is Dart).
- Flutter SDK: a collection of tools that are going to help you develop your applications. it contains tools that compile your code into native machine code.
- Flutter Framework: UI Library based on widgets (buttons, text widget, slider…etc)
Install the Flutter SDK
- You can download the SDK here
- unzip and place it to the folder (e.g: development)
- set path to flutter folder
- check if you have set the path correct by typing on the terminal: which flutter — verify that flutter command is working
Set up the PATH for Flutter
- launch the terminal
- Type vim .zprofile (if you use zsh shell on your mac)
- Type i for inserting mode and add the path of your flutter directory export PATH=”$PATH:[YOUR_PATH]/flutter/bin”
- To copy your flutter PATH on terminal: cd to the folder you placed the flutter folder and type pwd command, copy the PATH and replace with above [YOUR_PATH]
- click on esc, then type :wq! to save and quit
- Check whether you do it correct, type which flutter command on terminal to verify
- Type flutter — version to check the flutter version