4

I have some of my flutter project that depends on flutter 2.10 and I have some that depends on flutter > 3.0. So if I want to work on any of my project depending on flutter > 3.0, I have to run flutter upgrade, vice versa for running project depending on flutter 2.10, I have to run flutter downgrade.

Is there a better way for me to use different version for a specific project?

1

2 Answers 2

3

You'll want the "flutter version management" for this: https://fvm.app. That'll let you download nearly any previous and current flutter release, and associate them on a project-by-project basis. It's quite robust and production-worthy.

Sign up to request clarification or add additional context in comments.

1 Comment

Of course, these days, I've long ago abandoned FVM and have gone with Puro (puro.dev) because Puro is faster, more powerful, more efficient, and integrates better with the IDEs. And it has an "eval" and a "repl" function!
1

First the download the required flutter SDK.

If you are using Android Studio, you can change the Flutter version by navigating to Android Studio -> Settings -> Languages and Frameworks -> Flutter. After changing the version, apply the settings and check the bottom section to confirm the current version.

For double confirmation, you can also go to Tools -> Flutter -> Flutter Doctor, where you can see the Flutter version used by the project. enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.