Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I worry about Flutter and Dart version being different?

Flutter uses the dart-lang SDK (and executable). So when I want to see what version I'm using, I run this and get the following:

Flutter

flutter --version

Output

Flutter 1.23.0-18.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 198df796aa (7 days ago) • 2020-10-15 12:04:33 -0700
Engine • revision 1d12d82d9c
Tools • Dart 2.11.0 (build 2.11.0-213.1.beta)

Version: 2.11.0

Dart

But when I check my machine's dart version. I see something different..

dart --version

Output

Dart SDK version: 2.10.2 (stable) (Tue Oct 13 15:50:27 2020 +0200) on "macos_x64"

Version: 2.10.2


How can I make sure I'm always using the same dart-sdk and executable between the dart tool and flutter? What is managing the two tools? Should I worry about Flutter and Dart version being different (edit)?

like image 681
Apealed Avatar asked May 19 '26 11:05

Apealed


1 Answers

If you have installed the dart sdk separately before, you could just delete it, and then the dart sdk included in the Flutter will be used automatically.

find the installation folder which dart

if it is not in the flutter SDK folder

then just rm -r the folder

like image 90
Edwin Liu Avatar answered May 21 '26 19:05

Edwin Liu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!