How to check your Flutter and Dart versions
( 49 Articles)
This short article is about checking Flutter SDK and Dart SDK versions that are installed on your computer. In addition, you’ll also learn how to upgrade your Flutter SDK, find out which Flutter channel is being used and how to change it.
Checking Dart SDK Version
To see your Dart SDK version, open your terminal (or command prompt) and run the following command:
The output will look similar to this:
Dart SDK version: 2.12.2 (stable) (Wed Mar 17 10:30:20 2021 +0100) on "macos_x64"
Checking Flutter SDK Version and Channel
To know your Flutter SDK version, execute the command below:
The output’ll provide a bunch of information including the Flutter SDK version, which channel is in use, etc.
Flutter 2.0.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 4d7946a68d (11 days ago) • 2021-03-18 17:24:33 -0700 Engine • revision 3459eb2436 Tools • Dart 2.12.2
Another command that can give you what you want:
You’ll see something like below in your terminal window:
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.0.3, on macOS 11.0.1 20B50 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.0) [✓] VS Code (version 1.54.3) [✓] Connected device (2 available) ! Error: iPad Air 2 is not connected. Xcode will continue when iPad Air 2 is connected. (code -13) • No issues found!
If you need more details, just perform the “flutter doctor” command with the “-v” flag:
flutter doctor -v
Then the output will be so informative. Here’s mine:
If you only want to see your current Flutter channel, use this:
The output will look like below:
Flutter channels: master dev beta * stable
Upgrading Flutter SDK and Switching Flutter channels
In order to upgrade your Flutter SDK, run the following:
Flutter has 4 channels: “stable”, “beta”, “dev”, and “master”. To change your channel, use this command:
flutter channel [channel-name]
You’ve t learned a few useful commands to use when developing apps with Flutter. Continue exploring more fascinating stuff in Flutter by taking a look at these articles: How to Add a Drop Shadow to Text in Flutter, Flutter and Firestore Database: CRUD example, Flutter SliverList – Tutorial and Example, Flutter: Make a simple Color Picker from scratch, Flutter: Check Internet Connection without any plugins.