To check the installed Flutter version, follow these steps:
-
Open the Command Prompt or Terminal: First, open the Command Prompt (Windows) or Terminal (macOS/Linux) on your computer.
-
Execute the Flutter version check command: In the command line, enter the following command and press Enter:
bashflutter --version
This command outputs detailed version information for the installed Flutter SDK, including the Flutter version, Dart version, and related version dates.
- Interpret the output: After executing the command, the system displays output similar to the following:
shellFlutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision f4abaa0735 (3 weeks ago) • 2021-07-01 12:46:11 -0700 Engine • revision 241c87ad80 Tools • Dart 2.13.4
Here, Flutter 2.2.3 indicates the installed Flutter version is 2.2.3.
By doing this, you can quickly identify the specific version of the Flutter SDK installed on your machine, enabling you to upgrade or perform other necessary actions as needed.
Practical Application Example: Understanding the current Flutter version is crucial in development, especially when dealing with version compatibility issues. For instance, if your app encounters problems in a newer Flutter version, you may need to check the current version information to identify and fix potential compatibility issues by referring to the Flutter release notes. Additionally, when preparing to release your app to production, verifying the used Flutter version is an important step to ensure stability and performance.