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.19.5 (stable) (Mon Mar 20 17:09:37 2023 +0000) on "macos_arm64"
Checking Flutter SDK Version and Channel
To know your Flutter SDK version, execute the command below:
The output will provide a bunch of information including the Flutter SDK version, which channel is in use, etc.
Flutter 3.7.8 • channel stable • https://github.com/flutter/flutter.git Framework • revision 90c64ed42b (10 days ago) • 2023-03-21 11:27:08 -0500 Engine • revision 9aa7816315 Tools • Dart 2.19.5 • DevTools 2.20.1
Another command that can give you what you want:
You’ll see something like the below in your terminal window:
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.7.8, on macOS 13.0 22A380 darwin-arm64, locale en-VN) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 14.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.1) [✓] VS Code (version 1.76.2) [✓] Connected device (3 available) [✓] HTTP Host Availability • 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:
- Prevent VS Code from Auto Formatting Flutter/Dart Code
- 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