Install Flutter on Mac

preview_player
Показать описание

I have faced real time issues while installation , so no editing , and its little bit lengthy video and divided into 3 parts,

Here are some main steps which you need to follow

Flutter installation

Step 1: Download Flutter sdk
Step 2: Install Android Studio
Step 3: Install Xcode

Flutter specific Steps


Step 1: save the flutter folder path in any text file for later use
in my case path was
/Users/arslankhan/Downloads/flutter

Step 2: replace PATH_OF_FLUTTER_GIT_DIRECTORY with your flutter sdk path

export PATH="$PATH:[PATH_OF_FLUTTER_GIT_DIRECTORY]/bin"
path will be look like this
export PATH="$PATH:/Users/arslankhan/Downloads/flutter/bin"

Step 3: find the .bash_profile

Normally , you will find it in the root directory of the system. Oh , are you confuced with the work root directly ?? no worries, root is the home . to find the root or home directory
1: you just need to type "cd" in the terminal
now you are in the home / root directly.
2: type "ls -la" in the terminal, you will see the .bash_profile. if not available then follow step 3.
3: type vim .bash_profile
if this file exist then good ,if not created vim will create this file for you
4: copy past the path of flutter sdk in .bash_profile
export PATH="$PATH:/Users/arslankhan/Downloads/flutter/bin"
Note: to follow this step, see the video carefully.
5: type "flutter doctor" in the terminal, if it flutter successfully installed it will show you the required things for flutter and will guide it if some thing missing for installation.
Note: this step will not work if flutter is not successfully installed , and it means you have not correctly past the flutter path into .bash_profile.
This is all so far,

Here are the my system specs

MacBook Pro (Retina, 15-inch, Mid 2015)
2.2 GHz Quad-Core Intel Core i7
16 GB 1600 MHz DDR3
Macintosh HD
Intel Iris Pro 1536 MB
visit shbcf.ru