Great article! Just a little thing I noticed…
You say:

Next we need to add .pub-cache/binto our PATH since we will be installing a global pub package
MacOS/Linux add:


But, if you use the command like you showed (I dropped the ‘packages’ part):

flutter pub global activate webdev

The pub-cache directory containing the bin directory will become:


Where $FLUTTER_ROOT is the place you installed the Flutter SDK to, regardless of having the environment variable set or not.
So, the $PATH should include the correct location, possibly something like:

EXPORT PATH="$HOME/lib/flutter/.pub-cache/bin:$PATH"

Just a little something to be aware of.

Senior Software Developer. Hard-Core Learning Addict.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store