Can I run two flutter projects with different versions on the same machine?

Asked

Viewed 57 times

1

I’m codifying an app in the version Flutter 2.2.2, now I received a task to help in a friend’s app, but his app is in version 2.1.3 and I want to know how I can run these two projects on my machine that is currently installed version 2.2.2 of Flutter without giving any version conflict.

2 answers

0


Yes, you can. The Flutter SDK is nothing more than a bunch of files that you download and put in any folder of the OS. And the path of this folder is set in PATH just to make your life easier and be able to run the commands without having to navigate to the folder where it is.

Taking this into account, you can have as many Sdks as you want, in different folders. And even go changing their path directly in your PATH.

Although this works, people usually use the fvm(Flutter Version Manager) which does exactly this task of downloading N Sdks in different folders, only it leaves in a more "simple" way the change between the different versions. In addition to some other commands that may be useful.

Project documentation is all you need: https://fvm.app/

-2

You can use Sidekick, Sidekick controls the versions and has graphical environment and allows you to run 2 or more versions of Flutter and set the version for the specific project.

https://github.com/leoafarias/sidekick

Browser other questions tagged

You are not signed in. Login or sign up in order to post.