This is the third day of my participation in the August More text Challenge. For details, see: August More Text Challenge. In response to the nuggets’ August challenge,

1 Install the Choco first

If you can’t run as a PowerShell administrator, open a PowerShell window, right-click on the taskbar, and select the first one

Type the command

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Copy the code

The installation is successful.

Next, install FVM

 choco install fvm
Copy the code

2fvm Common commands Commands

2.1 View the installed version of Flutter
fvm list
Copy the code
2.2 Global Settings version of Flutter
FVM global 2.2.0Copy the code
2.3 Individual projects use a version of Flutter
FVM use 2.2.0Copy the code
2.4 Removal of a version of the Flutter
FVM remove 2.2.0Copy the code

3 set IDE

Now let’s take a look at how to configure the IDE. We have shown how to do this in Android Studio and VS Code. Now let’s take a look.

  • Android Studio

Copy the following absolute symbolic links in the root project directory.

Example: /absolute/path-to-your-project/.fvm/flutter_sdk
Copy the code

Then we will open Languages and Frameworks-> Now Search for flutter or Flutter and change the path to Flutter in the Android Studio menu The SDK. Then implement the change. Now you can run it with the selected version of Flutter and debug it. If you want to see the new Settings, then we can use Android Studio will reboot.

  • VS Code

Now that we will configure VS Code here, we will see how to complete the VS Code process.

Directory, we can see all versions of the FVM installation in the code

"dart.flutterSdkPaths": ["$YOUR_PATH/fvm/versions",],
Copy the code

To get the path above, we will execute the FVM list command

// copy this path
Versions path:  $YOUR_PATH/fvm/versions
Copy the code

Type CMD + Shift + P to use the SDK, then change SDK, and now you can choose which version you like.

conclusion

In this article, I have given a simple explanation of versioning that you can modify and experiment with according to your own needs. This simple introduction comes from the versioning of the Flutter.

I hope this blog will provide you with adequate information on trying to manage the version of Flutter. We show you The Flutter exploration version management and work on your Flutter application, so try it out.