How to check your Flutter and Dart versions
(34 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.

Table of Contents
Checking Dart SDK Version
To see your Dart SDK version, open your terminal (or command prompt) and run the following command:
dart --version
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:
flutter --version
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:
flutter doctor
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:
✓] Flutter (Channel stable, 2.0.3, on macOS 11.0.1 20B50 darwin-x64, locale en-US)
• Flutter version 2.0.3 at /Users/goodman/Coding/flutter
• Framework revision 4d7946a68d (11 days ago), 2021-03-18 17:24:33 -0700
• Engine revision 3459eb2436
• Dart version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/goodman/Library/Android/sdk
• Platform android-30, build-tools 29.0.3
• ANDROID_HOME = /Users/goodman/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.54.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.20.0
[✓] Connected device (2 available)
• iPhone 11 (mobile) • 539E2E20-F9BB-4852-92A5-E03E57F17351 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
! Error: iPad Air 2 is not connected. Xcode will continue when iPad Air 2 is connected. (code -13)
• No issues found!
If you only want to see your current Flutter channel, use this:
flutter channel
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 upgrade
Flutter has 4 channels: “stable”, “beta”, “dev”, and “master”. To change your channel, use this command:
flutter channel [channel-name]
Wrapping Up
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.
You can also check out our Flutter topic page or Dart topic page for the latest tutorials and examples.
In pubspec i have
environment:
sdk: “>=2.7.0 <3.0.0“
This refers to Dart SDK, right?
Sorry if there’s any misleading place.