Installing and upgrading Flutter on your system.
For the most accurate and up-to-date installation instructions, please refer to the official guide:
Avoid Special Characters and Blanks in your installation path!
When installing Flutter, it's important to note the differences between Mac and Windows systems. One of the system requirements is having Git installed, as Flutter utilizes it for installation and updates. On Windows, Git needs to be installed separately. However, on Mac, Git is conveniently included in Xcode. For a smooth installation experience, it is recommended to install Xcode before Flutter on Mac systems.
Even if you already have Xcode installed, go through the installation guide and check each step! For example, don't forget to add the Xcode Command-line tools.
- To find out which shell you are using:
- To toggle hidden directories and files:
command + shift + .
If you're more inclined to watch an installation video, I've got a fantastic recommendation for you: I highly recommend checking out the tutorials by Maximilian Schwarzmüller from Academind.
Now, let me make one thing clear — I'm not affiliated with Academind, and they definitely haven't slipped me any advertising cash (unfortunately). But I genuinely appreciate Max's work and the crystal-clear instructions he provides.
So, I wholeheartedly encourage you to check out his tutorial about Flutter & Dart ("The complete guide [2023 Edition]") and see for yourself. Don't just take my word for it, folks! Discover the wonders of Flutter installation with Max's delightful guidance. There are several free videos: amongst others you'll find a guide about the macOS Setup and one about the Windows Setup!
As a general recommendation, I suggest deleting the
targetfolders after upgrading the Flutter version.
To upgrade the Flutter SDK use this command:
To upgrade to the latest compatible versions of all the dependencies listed in the pubspec.yaml file, use the flutter pub command:
flutter pub upgrade
Use this link for more information:
To find out where your Flutter SDK is located:
To find out which Flutter Version is installed:
To check the Flutter related tools on your working environment: