Setup Flutter Path or Install Flutter in Mac OS
<p>Flutter has good <a href="https://flutter.dev/docs/get-started/install" rel="noopener ugc nofollow" target="_blank">installation documentation</a>, but to update flutter path permanently on macOS need to follow this steps</p>
<ol>
<li>Download Flutter Framework from here<br />
<a href="https://flutter.dev/docs/get-started/install/macos" rel="noopener ugc nofollow" target="_blank"><strong>https://flutter.dev/docs/get-started/install/macos</strong></a></li>
<li>If <strong>bash Shell</strong> then run this command in terminal<br />
<strong>nano ~/.bash_profile</strong><br />
If <strong>zsh Shell</strong> then run this command in terminal<br />
<strong>nano ~/.zshrc</strong></li>
<li>Add the following line and change [PATH_TO_FLUTTER_GIT_DIRECTORY] to be the path where you cloned Flutter’s git repo:<br />
<strong>export PATH=”$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin”</strong><br />
for example:<br />
export PATH=”$PATH:user/rohan/flutter/bin”</li>
<li>press CTRL X and when it asked you to save the file, choose yes</li>
<li>after that, if <strong>bash Shell</strong> then run <strong>source ~/.bash_profile</strong> to refresh the current window or restart the terminal<br />
if <strong>zsh Shell</strong> then run <strong>source ~/.zsh</strong> to refresh the current window or restart the terminal</li>
</ol>
<p><a href="https://rohanchhatbar1993.medium.com/setup-flutter-path-in-mac-os-855ea7054fbd"><strong>Click Here</strong></a></p>
<p> </p>