Setting Up Flutter on Mac

Sreypich Phan
2 min readJan 7, 2021

--

flutter

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

  1. 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.
  2. Flutter Framework: UI Library based on widgets (buttons, text widget, slider…etc)

Install the Flutter SDK

  1. You can download the SDK here
  2. unzip and place it to the folder (e.g: development)
  3. set path to flutter folder
  4. check if you have set the path correct by typing on the terminal: which flutterverify that flutter command is working

Set up the PATH for Flutter

  1. launch the terminal
  2. Type vim .zprofile (if you use zsh shell on your mac)
  3. Type i for inserting mode and add the path of your flutter directory export PATH=”$PATH:[YOUR_PATH]/flutter/bin”
  4. 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]
  5. click on esc, then type :wq! to save and quit
  6. Check whether you do it correct, type which flutter command on terminal to verify
  7. Type flutter — version to check the flutter version

--

--

No responses yet