How to setup Flutter for Application development on Mac

Savad mv
3 min readJul 31, 2020

Here I explain how to install flutter in android studio in Mac system

This may be helpful for those Flutter developers who are new to Mac and chose Android studio as IDE

Requirement

Memory

At least have around 10 GB free on your laptop if not more so you will have a smooth experience in setting up and developing

OS

You should be running at least Mac OS 10 (Mojave) if you want IOS app to be testing in a physical device that running in the latest version of iOS

It also works with a lower version of Mac OS(High Sierra)

Let’s get Started

Go to website https://flutter.dev/

You will be now in a page looks something like this 👇

Chose macOS from this and start downloading flutter SDK by clicking here 👇

When the download is done, you will be able to find the file in your download folder

Extract this ZIP file and you will get a folder with name “flutter

Its import that to move this flutter folder out of the download folder into somewhere permanent. The ideal place to put it under your username may be in a User folder

So I created a folder and named “Developer” under the user folder

I moved the “flutter” folder from download folder to a new folder

Okay That's done

Now note down the path of the flutter folder.In my case, it is /Users/fegnotechnologies/Developer/flutter

Now let's move to terminal

Press Command and Spacebar

Type “terminal“ in the spotlight search

And press return

A terminal will be open up

Create or Open rc file

You have to edit $HOME/.bash_profile or $HOME/.bashrc if you are not using macOS Catalina

If your OS version is macOS Catalina, then you have to edit $HOME/.zshrc or else

How do we edit??

Use vim command to open the file

So in the terminal that we opened

If you are not using macOS Catalina, enter

OR

If you are using macOS Catalina

Now we have the rc file opened up press “i” to edit it

Enter this 👇 in it

export PATH=”$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin”

In my case, it will be like this 👇

export PATH=”$PATH:/Users/fegnotechnologies/Developer/flutter/bin”

Now press “esc” key then enter “:wq!” And press return this will save the file (Crazy vim editor)

It’s done ???

Yeas it is. Let’s check …

Just close the terminal and open it again

Enter the command “flutter — version

Yes it’s done

Please support…..

New to blogging. whish to contribute more … welcoming suggestions

Now

--

--