This short article is about checking Flutter SDK and Dart SDK versions that are installed on your computer. In addition, youll 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:Advertisements
The output will look similar to this:
Dart SDK version: 2.16.1 (stable) (Tue Feb 8 12:02:33 2022 +0100) on "macos_x64"
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 2.10.3 channel stable https://github.com/flutter/flutter.git Framework revision 7e9793dee1 (5 days ago) 2022-03-02 11:23:12 -0600 Engine revision bd539267b4 Tools Dart 2.16.1 DevTools 2.9.2
AdvertisementsAnother command that can give you what you want:
Youll see something like below in your terminal window:
Doctor summary (to see all details, run flutter doctor -v): [?] Flutter (Channel stable, 2.10.3, on macOS 12.1 21C52 darwin-x64, locale en) [?] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [?] Xcode - develop for iOS and macOS (Xcode 13.2.1) [?] Chrome - develop for the web [?] Android Studio (version 4.2) [?] VS Code (version 1.65.0) [?] Connected device (2 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. Heres 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]
Youve 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