(Flutter Tip) Setting Path Variable in Linux Manually

(Flutter Tip) Setting Path Variable in Linux Manually

Image for post

Flutter

I have seen many Linux distros which have this problem

According To flutter docs and Linux docs to set path you have to use this command

export PATH="$PATH:`pwd`/flutter/bin"</span>

But sometime it works sometime it doesn’t i don’t know why

The thing is when you write command to set path it will accept flutter commands until you close it

How to solve it?

In home/username path there is file called .profile go to .profile and at the bottom of the texts add this line

PATH=$PATH:/your-path/flutter/bin</span>

Example:-

PATH=$PATH:/home/bharatmk257/flutter/bin</span>

And Done restart your computer and You are good to go.