6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Flutter で Channel を切り替える

Posted at

やること

Flutter で、使用する Channel を切り替える。

Channel とは

  • stable
  • beta
  • dev
  • master

の種類があり、機能だったり安定性に差がある。

Ref: https://flutter.dev/docs/development/tools/sdk/releases

やりかた

現在の Channel を確認する

$ flutter --version
Flutter 1.20.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision bbfbf1770c (9 days ago) • 2020-08-13 08:33:09 -0700
Engine • revision 9d5b21729f
Tools • Dart 2.9.1

stable になってるみたい。

beta に切り替えてみる

例えば beta に切り替えてみる。

$ flutter channel beta
Switching to flutter channel 'beta'...
flutter git: Switched to a new branch 'beta'
git: Branch 'beta' set up to track remote branch 'beta' from 'origin'.
Successfully switched to flutter channel 'beta'.
To ensure that you're on the latest build from this channel, run 'flutter upgrade'

切り替わった。

各種アップデート

Channel を切り替えると、それに伴って使用するパッケージだったりも変わるので、更新しておく。

$ flutter upgrade
$ flutter pub get

おわり。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?