Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use both Flutter stable and dev SDK on the same machine?

I'm working with Flutter to make a Mobile App using the stable Flutter SDK release. But I also want to try Flutter Desktop and Flutter Web that are not part of the Flutter stable channel yet, but are present on the Flutter dev channel.

My question is... How can I try Flutter Desktop and Flutter Web without override the Flutter stable release on my machine?

like image 445
Eleandro Duzentos Avatar asked Jun 23 '20 12:06

Eleandro Duzentos


Video Answer


1 Answers

I found this Dart package called Flutter Version Management that does exactly what I want.

As the docs says:

Flutter Version Management: A simple cli to manage Flutter SDK versions.

Features:

  • Configure and use Flutter SDK version per project
  • Ability to install and cache multiple Flutter SDK Versions
  • Fast switch between Flutter channels & versions
  • Dynamic SDK paths for IDE debugging support.
  • Version FVM config with a project for consistency across teams and CI environments.
  • Set global Flutter version across projects

https://github.com/leoafarias/fvm

Now I just need to add FVM_HOME/default/bin to the PATH and FVM will take care of everything...

like image 177
Eleandro Duzentos Avatar answered Sep 16 '22 19:09

Eleandro Duzentos