In my case, I put that line export PATH=[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin:$PATH to both file .bash_profile and .bashrc (put it on the last line). After that, run source .bash_profile and source .bashrc. Now it's working!, even if you close the terminal.