Flutter: How to fluttering from one version to other versions

Alex Melnyk
LITSLINK
Published in
3 min readMay 6, 2021

--

Each time when technology changes to a new major version it’s painful to migrate a project from the lower to a higher version. Fortunately, Dart has a migration utility that helps you to migrate definitions in your project to a new syntax.

Dart hummingbird + Flutter

But even you are ready to switch to a newer version you have to wait for the bunch of plugins that you are used in your project, even in my case I do help with migration to Null-Safety for some open-source libraries it’s not enough to migrate my project to the next version.

The Flutter community grows up every day, in most cases, you will find alternative plugins for such that are not migrated yet. In case, you freeze on the previous flutter version this article helps you to simplify switching between projects.

Version Management

Flutter versions have a related Dart SDK version that caches into the Flutter cache folder locally, so it’s some constraints that you should keep in mind.

As a developer you have several options to switch between versions:

  • Manually using CLI (command-line scripting)
  • Flutter Version Manager CLI
  • Sidekick GUI

Manual

--

--