Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,29 @@ permalink: /upgrading/
We recommend tracking the `master` branch in the flutter repository, which
updates continuously as we improve Flutter.

## Specifying the Flutter SDK for your project

You specify dependencies from the Flutter SDK in the `pubspec.yaml` file. For
example, the following snippet specifies that the
`flutter` and `flutter_test` packages use the Flutter SDK.

```
name: hello_world
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
```

The `sdk: flutter` line tells the `flutter` command-line tool find the
correct package for you.

Do not use the `pub get` or `pub upgrade` commands to manage your dependencies.
Instead, use `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 `flutter upgrade`
Expand Down