fvm icon indicating copy to clipboard operation
fvm copied to clipboard

[Feature Request] Automatically install required version or use it

Open Islam-alshiki opened this issue 1 year ago • 3 comments

Describe the solution you'd like I would like to propose the addition of a new command that automatically checks the Flutter version required by the app itself and installs it if it does not exist.

Describe alternatives you've considered FVM need to manually check the required Flutter version, install it

Islam-alshiki avatar May 06 '24 14:05 Islam-alshiki

This feature will be great to migrate the initialised project without fvm. A command setup is a good name ?

fvm setup

And this import recovery the version from pubspec.yml.

digoreis avatar Jun 04 '24 12:06 digoreis

I would appreciate if fvm supported "zero-config setup," automatically reading the Flutter version from pubspec.yml rather than .fvmrc. For straightforward use cases, .fvmrc seems necessary solely for specifying the Flutter version, which is already present in pubspec.yml.

VojtaStanek avatar Jun 04 '24 18:06 VojtaStanek

In this case, the most simple solution is install command has a fallback behaviour to use the Pubspec version parameter how the default version .

digoreis avatar Jun 05 '24 09:06 digoreis