Home > OS >  Why flutter version difference
Why flutter version difference

Time:07-28

I am not getting here it says the current flutter SDK version is 2.0.2 but when I go on a terminal and search flutter --version it says Flutter 2.8.1 see below picture

enter image description here

See this pic why is it? in the above pic it says the flutter SDK version is 2.0.2 and in the below pic it says 2.8.1 ,Pls guide why this difference

enter image description here

CodePudding user response:

You are very likely to have two different versions of Flutter installed on your computer. This is possible because your IDE has its own setting to know where it should look for Flutter SDK which is what is used in your first screenshot.

In your second screenshot, you are running the flutter command in a terminal. To resolve what flutter means, it uses your PATH environment variable to search for an executable matching your command name.

So my guess is that your IDE and PATH environment variable points to two different Flutter installations on your computer.

  • Related