"Flutter upgrade"
IDX is using an outdated version of Flutter (3.13.4). We are currently on version 3.16.3. How can we update it?
The version of Flutter is now on the latest stable, and you will be able to use flutter upgrade to move versions if needed for new projects. To see this in action, create a new project or migrate an older Flutter project to a new one.
-
idan halima commented
same to me also, but also need to update the Android SDK, its give me a lot of errors and most of the new package need SDK of 34
-
Tae Trees commented
@Glenford Williams - It worked for me.
I found the way to change flutter SDKs.
1. open '.idx/dev.nix' file.
2. edit channel to "unstable"
channel = "unstable";3. edit packages name to pkgs.flutter316
packages = [
pkgs.flutter316
pkgs.nodePackages.firebase-tools
pkgs.jdk17
];4. Click right bottom button - Rebuild Environment
Now it's SDK 3.16.7 version. I don't know how to choose exact 3.16.3 SDK version.
But it will help you.There's few other versions such as flutter319, flutter313, etc.
You can find nix packages below link.
https://search.nixos.org/packages?channel=unstable&show=flutter&from=0&size=50&sort=relevance&type=packages&query=flutter -
Glenford Williams commented
Is there a work around?
I thought i'd be able to get it working using flutter316 from the nix unstable branch but setting channel to "unstable" seemingly doesnt work
I started working on an alternate solution using fvm and melos. it's a bit wonky because i am installing fvm using the flutter 3.13.4 before getting it to install newer versions of flutter.
-
Himanshu Maurya commented
Still waiting...
-
임태현 commented
Still waiting...
-
Bhupendra Singh Hada commented
Not being able to update the Flutter version is the only reason I don't use idx.
-
ngMinhTam commented
Agreed. My project is currently on Flutter 3.16.3, can not run on 3.13.4 because of "TextScaler" error
-
Atiq Samtia commented
Still waiting on this, can't test this awesome IDE due to this issue not my apps running on older versions
-
Hi Rodrigo - we are working on a more streamlined story here. We hope to share some updates in the near future.