Change flutter version

Flutter tips Published on

Sometimes you need to change which version of Flutter you are using. Maybe for a specific project or to test a new feature. Here’s how you can do it.

Using Git Checkout

This method uses the built-in version control features where your Flutter SDK is installed.

Finding Your Flutter Install

First, go to the directory where Flutter is installed on your system.

Switching to a Specific Version

Once in the Flutter directory, you can use the git checkout command followed by the version number you want. For example, to switch to version 1.22.6:

git checkout 1.22.6

After running this, Flutter will update files and switch to that version.

What Happens Next?

The next time you run a Flutter command, it will automatically download and set up anything needed for that version.

Going Back to Stable

If you want to return to the latest stable version, simply use:

git checkout stable

Using FVM (Flutter Version Management)

A more flexible way is to use a tool called FVM. It lets you manage multiple Flutter versions easily.

Installing FVM

You can install FVM globally using Dart:

dart pub global activate fvm

Alternatively, you can install it using package managers like Homebrew on macOS. You can find details on the FVM website.

Switching Versions with FVM

Once FVM is set up, switching is simple. To use version 1.22.6, run:

fvm use 1.22.6

FVM helps you manage different versions per project.

More About FVM

For more information and features of FVM, check out fvm.app.

Switching Flutter versions is a common task, and both git checkout and FVM provide easy ways to do it.

Save 3 months of work

Create your app using our 6 years of making Flutter apps and more than 50+ apps

kickstarter for flutter apps

Frequently Asked Questions

How do I change my Flutter version?

You can change your Flutter version using the `git checkout` command in your Flutter SDK directory, or by using a version management tool like FVM.

How do I switch back to the stable Flutter version?

If you used `git checkout`, go to your Flutter SDK directory and run `git checkout stable`. If you are using FVM, use the appropriate FVM command for stable, or switch to another specific version.

What is FVM?

FVM stands for Flutter Version Management. It's a tool that allows you to easily install and switch between different Flutter SDK versions, often on a per-project basis.

How do I install FVM?

You can install FVM globally using `dart pub global activate fvm` or via package managers like Homebrew. Check the official FVM documentation for detailed instructions.

Read more
You may also be interested in
Benchmark a function within a test  blog card image
Benchmark a function within a test
Published on 2025-05-12T12:24:19.613Z
Extract borders from image  blog card image
Extract borders from image
Published on 2025-05-12T12:19:08.227Z
ApparenceKit is a flutter template generator tool by Apparence.io © 2025.
All rights reserved