top of page

Flutter 2.0 Migration Guide

Updated: Apr 21, 2021



Flutter 2.0 was released on March 3, 2021. So if you downloaded Flutter before this date and have yet to upgrade Flutter, this guide will help walk you through it. If you downloaded it on or after, then you are already using Flutter 2.0.


Flutter 2.0 updated many of its existing widgets and it introduced a new feature called null safety, which we will also cover in this migration guide. The main changes were the buttons because they had a name change and the way they worked was also changed. Everything else, works pretty much the same way with additional features.



Channel

Before we dive into updating Flutter, we first need to make sure we are now using Flutter's stable channel. We were using a beta channel before because we wanted to use the WebApp, which was in development and hence it was in the beta channel, but with Flutter 2.0 the WebApp is now stable. By stable, it means that pretty much everything works when we switch from a Mobile App to a WebApp.



Checking Channel

In your terminal, type and run the following command:

flutter channel

This should tell you what channel you're currently on. We want to make sure that you are on the stable channel before performing an upgrade.