Setup Flutter Path or Install Flutter in Mac OS

<p>Flutter has good&nbsp;<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&nbsp;<strong>bash Shell</strong>&nbsp;then run this command in terminal<br /> <strong>nano ~/.bash_profile</strong><br /> If&nbsp;<strong>zsh Shell</strong>&nbsp;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&rsquo;s git repo:<br /> <strong>export PATH=&rdquo;$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin&rdquo;</strong><br /> for example:<br /> export PATH=&rdquo;$PATH:user/rohan/flutter/bin&rdquo;</li> <li>press CTRL X and when it asked you to save the file, choose yes</li> <li>after that, if&nbsp;<strong>bash Shell</strong>&nbsp;then run&nbsp;<strong>source ~/.bash_profile</strong>&nbsp;to refresh the current window or restart the terminal<br /> if&nbsp;<strong>zsh Shell</strong>&nbsp;then run&nbsp;<strong>source ~/.zsh</strong>&nbsp;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>&nbsp;</p>
Tags: Flutter setup