Be sure to retweet brother for more Flutter posts at ~~~~

Ducafecat WeChat group

B stationhttps://space.bilibili.com/40…

The original

https://medium.com/flutterdev…

reference

  • https://github.com/leoafarias…
  • https://fvm.app/

The body of the

Flutter is a portable UI toolkit. In other words, it is a comprehensive application software development kit (SDK), including widgets and tools. Flutter is a free, open source tool for developing mobile, desktop, and Web applications. Flutter is a cross-platform development tool. This means that we can create both iOS and Android applications with the same code. This is the best way to save time and resources throughout the process. In this regard, Hot Reload is gaining support from mobile developers. Allows us to quickly see changes implemented in the code through hot reload.

Flutter management versions allow different types of Flutter versions available on a project basis. This means that we can define a specific type of Flutter version for different types of projects, which allows us to release multiple channels, cache it locally, and therefore switch versions. Then we won’t have to wait for it to be installed.

In this article, we’ll learn about Flutter versioning. Here, we’ll see how to set up a working versioning jitter. Let’s get started. Let’s get started.

Version management (FVM)

When working on the Flutter project, it takes time to release updated Flutter and the application, verify it, and switch between different types of software development kits for testing. To avoid this, we use Flutter version management, which provides us with different types of Flutter versions of our machine. Therefore, every time Flutter can test the application on updating the Flutter version without waiting to install, it will be able to switch to the Flutter version accordingly.

The installation

The first thing you need to determine is whether Flutter is installed and whether Flutter is a stable channel. If not, type the following code on the command line.

// set flutter to stable channel
flutter channel stable// check flutter channel
flutter channel// output
Flutter channels:
  master
  dev
  beta
* stable

After this, we must determine if our Flutter is installed or not, if not, then first we will install FVM

$ pub global activate fvm

Step We will now see that some warnings are given at the end of the installation process, so we need to add the FVM path to the shell configuration file (. Before proceeding to the next step, use bashrc, bash_profile, and so on

Export PATH= "$PATH: 'PWD' /flutter/bin" $FVM install export PATH= "$PATH: 'PWD' /bin/cache/dart-sdk/bin" export PATH= "$PATH: 'PWD' /bin/cache/dart-sdk/bin" export PATH = "$PATH: ` PWD ` /. Pub - cache/bin"

SDK version description

DVM allows us to install a variety of types of Flutter Release or Channel Setup Channel using Stable and Install Flutter Release Version we will use V2.0.5 or 1.17.0-dev.3.1 and once we run – skip – install it will skip the install

$FVM install stable or FVM install 2.0.5

Project Config SDK Version

After that, we’ll see that regardless of whether the project is configured to use a particular version, if not, we’ll install it on the appropriate version with no parameters.

$ fvm install

List of installed versions of Flutter

Now, we can list the installed versions on our machine by using the command FVM will store the SDK versions using the following command.

$ fvm list

Upgrade the SDK version

When using the Upgrade SDK version command, we need to upgrade our current SDK version, so you must call your Flutter SDK command as normal for the Flutter installation.

$ fvm flutter upgrade

Set up the IDE

Now let’s take a look at how to configure the IDE. Now that we have shown how to do this in Android Studio and VS Code, 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

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 to reboot.

  • VS Code

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

Directory where we can see all the versions of FVM installed in the code

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

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

// copy this path
Versions path:  $YOUR_PATH/fvm/versions

Type CMD + shift + p to use the SDK, then type change SDK, now you can choose which version you like.

conclusion

In this article, I’ve provided a brief explanation of versioning that you can modify and experiment with to your own needs, courtesy of the versioning Flutter.

I hope this blog will provide you with full information on trying out version management in Flutter. We showed you Flutter Explore versioning and works in your Flutter application, so please try it out.


The elder brother of the © cat

https://ducafecat.tech/

https://github.com/ducafecat

The issue of

Open source

GetX Quick Start

https://github.com/ducafecat/…

News Client

https://github.com/ducafecat/…

Strapi manual translation

https://getstrapi.cn

WeChat discussion group Ducafecat

A series of collections

The translation

https://ducafecat.tech/catego…

The open source project

https://ducafecat.tech/catego…

DART programming language basics

https://space.bilibili.com/40…

Flutter Zero Basics Beginners

https://space.bilibili.com/40…

Flutter combat news client from scratch

https://space.bilibili.com/40…

Flutter component development

https://space.bilibili.com/40…

Flutter Bloc

https://space.bilibili.com/40…

Flutter Getx4

https://space.bilibili.com/40…

Docker Yapi

https://space.bilibili.com/40…