No matter which one of the Flutter release channels
you follow, you can use the
flutter command to upgrade your
Flutter SDK or the packages that your app depends on.
Upgrading the Flutter SDK
To update the Flutter SDK use the
flutter upgrade command:
$ flutter upgrade
This command gets the most recent version of the Flutter SDK that’s available on your current Flutter channel.
If you want an even more recent version of the Flutter SDK,
switch to a less stable Flutter channel
and then run
Switching Flutter channels
Flutter has four release channels: stable, beta, dev, and master. We recommend using the stable channel unless you need a more recent release.
To view your current channel, use the following command:
$ flutter channel
To change to another channel, use
flutter channel <channel-name>.
Once you’ve changed your channel, use
to download the Flutter SDK and dependent packages.
$ flutter channel dev $ flutter upgrade
If you’ve modified your
pubspec.yaml file, or you want to update
only the packages that your app depends upon
(instead of both the packages and Flutter itself),
then use one of the
flutter pub commands.
To update to the latest compatible versions of
all the dependencies listed in the
$ flutter pub upgrade
To identify out-of-date package dependencies and get advice
on how to update them, use the
outdated command. For details, see
pub outdated documentation.
$ flutter pub outdated
We publish breaking change announcements to the Flutter announcements mailing list. You can also ask questions on the Flutter dev mailing list. Aside from subscribing to receive announcements, we’d love to hear from you!