We strongly recommend tracking the
beta branch in the flutter repository,
which is where we push ‘known good builds’ of Flutter. If you need to
view the very latest changes, you can track the
but note this is where we do our daily development, so stability is much lower.
To view your current branch, use
To change branch, use
flutter channel beta /
flutter channel master.
Specifying the Flutter SDK for your project
You specify dependencies from the Flutter SDK in the
For example, the following snippet specifies that the
flutter_test packages use the Flutter SDK.
name: hello_world dependencies: flutter: sdk: flutter dev_dependencies: flutter_test: sdk: flutter
sdk: flutter line tells the
flutter command-line tool to find the
correct package for you.
Do not use the
pub get or
pub upgrade commands to manage your dependencies.
flutter packages get or
flutter packages upgrade.
If you want to use pub manually, you can run it directly by setting the
FLUTTER_ROOT environment variable.
Upgrading Flutter channel and your packages
To update both the Flutter SDK and your packages, use the
command from the root of your app (the same directory that contains the
$ flutter upgrade
Upgrading your packages
If you’ve modified your
pubspec.yaml file, or you want to only update
the packages your app depends upon instead of both the packages and
Flutter itself, then use the following commands:
flutter packages getretrieves all the dependencies listed in the
flutter packages upgraderetrieves the latest versions of all the dependencies listed in the
We publish breaking change announcements to our mailing list. We strongly recommend that you subscribe to get announcements from us. Plus, we’d love to hear from you!