Contents
Upgrading Flutter
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.
どのFlutterリリースチャネルをフォローしていても、flutterコマンドを使用して、FlutterSDKまたはアプリが依存するパッケージをアップグレードできます。
Upgrading the Flutter SDK
To update the Flutter SDK use the flutter upgrade
command:
Flutter SDKをアップデートするには、
flutter upgrade
コマンドを実行してください。
$ flutter upgrade
This command gets the most recent version of the Flutter SDK that’s available on your current Flutter channel.
このコマンドは、現在のあなたのFlutterチャンネルで利用可能な最新バージョンのFlutter SDKを取得します。
If you want an even more recent version of the Flutter SDK, switch to a less stable Flutter channel and then run flutter upgrade
.
さらに新しいバージョンのFlutterSDKが必要な場合は、安定性の低いFlutterチャネルに切り替えてから、Flutterアップグレードを実行してください。
Switching Flutter channels
Flutter has four release channels: stable, beta, dev, and master.
Flutterには四つのリリースチャンネルがあります。
stable,beta,dev,masterの四つです。
We recommend using the stable channel unless you need a more recent release.
より新しいリリースが必要でない場合はstableチャンネルをお薦めしています。
To view your current channel, use the following command:
今現在のあなたのチャンネルを確認するには、以下のコマンドを実行してください。
flutter channel
To change to another channel, use flutter channel <channel-name>
.
別のチャンネルに切り替える場合は、
flutter channel <channel-name>
コマンドを実行してください。
Once you’ve changed your channel, use flutter upgrade
to download the Flutter SDK and dependent packages. For example:
チャンネルを切り替えたら、
flutter upgrade
コマンドを実行して、Flutter SDKと必要なパッケージをダウンロードしましょう。例えば、
$ flutter channel dev
$ flutter upgrade
Note:特定のバージョンのFlutter SDKが必要な場合は、Flutter SDKreleasesからダウンロードできます。
Upgrading packages
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.
pubspec.yamlファイルを変更した場合、または(パッケージとFlutter自体の両方ではなく)アプリが依存するパッケージのみを更新する場合、flutter pubコマンドの1つを使用します。
To update to the latest compatible versions of all the dependencies listed in the pubspec.yaml file, use the upgrade command:
pubspec.yamlファイルにリストされているすべての依存関係の最新の互換性のあるバージョンに更新するには、upgradeコマンドを使用します。
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 the Dart pub outdated
documentation.
pub outdated
documentationを参照してください。
flutter pub outdated
Keeping informed
私たちは破壊的変更(breaking change)に関してのアナウンスメントをFlutter announcements mailing listで公開しています。
Flutter dev mailing listで質問することもできます。
アナウンスメント以外の事柄もあなたからのご意見をお待ちしております。
参考