How to update Dart SDK in ubuntu without updating Flutter?

Viewed 726

So I am working on creating an e-commerce App in flutter. I am using flutter version 1.22.6 for Ubuntu (18.04.5 LTS). I don't want to upgrade my flutter version as it generated lots of issues to my colleagues. For me the problem is that i have to use a lot of packages for my Application which requires most recent Dart SDK. So is it possible to upgrade just the Dart SDK while keeping the same version of Flutter.

1 Answers

Probably not, The reason for this is flutter is the framework and of course, it depends on dart language version. Why?

For example, If we compare 2 dart sdk between flutter 1.x version and flutter 2, we can see flutter ver 2 depends on dart sdk which supports null safety while flutter ver 1.x does not support null safety.

In the end, if you upgrade somehow the dart sdk without upgrading flutter sdk too, you will see many errors in flutter framework.

Related