Upgrade Flutter

This article shows how to upgrade Flutter SDK

Check current version

Run flutter doctor to check version.
We have version 1.0.0.

Leuts-MacBook-Pro:~ boule$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G4015, locale en-LU)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.31.1)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Upgrade SDK

Run flutter upgrade.

Leuts-MacBook-Pro:~ boule$ flutter upgrade
Upgrading Flutter from /Users/boule/flutter...
From https://github.com/flutter/flutter
   5391447fa..8661d8aec  stable     -> origin/stable
   5391447fa..8661d8aec  beta       -> origin/beta
   3cca1a2ec..3054a9357  dev        -> origin/dev
 + af09490e1...40c4925a5 gallery    -> origin/gallery  (forced update)
   e6d216cca..9f35f6c3a  master     -> origin/master
 * [new tag]             v1.1.1     -> v1.1.1
 * [new tag]             v1.1.2     -> v1.1.2
 * [new tag]             v1.1.3     -> v1.1.3
 * [new tag]             v1.1.4     -> v1.1.4
 * [new tag]             v1.1.5     -> v1.1.5
 * [new tag]             v1.1.6     -> v1.1.6
 * [new tag]             v1.1.7     -> v1.1.7
 * [new tag]             v1.1.8     -> v1.1.8
 * [new tag]             v1.1.9     -> v1.1.9
 * [new tag]             v1.2.0     -> v1.2.0
 * [new tag]             v1.2.1     -> v1.2.1
 * [new tag]             v1.3.0     -> v1.3.0
 * [new tag]             v1.2.2     -> v1.2.2
Updating 5391447fa..8661d8aec
 .../app/src/main/res/mipmap-hdpi/ic_launcher.png   |  Bin 0 -> 544 bytes
 .../app/src/main/res/mipmap-mdpi/ic_launcher.png   |  Bin 0 -> 442 bytes
 .../app/src/main/res/mipmap-xhdpi/ic_launcher.png  |  Bin 0 -> 721 bytes
 .../app/src/main/res/mipmap-xxhdpi/ic_launcher.png |  Bin 0 -> 1031 bytes
 .../src/main/res/mipmap-xxxhdpi/ic_launcher.png    |  Bin 0 -> 1443 bytes
 .../AppIcon.appiconset/Icon-App-1024x1024@1x.png   |  Bin 0 -> 11112 bytes
 .../AppIcon.appiconset/Icon-App-20x20@1x.png       |  Bin 0 -> 564 bytes
 .../AppIcon.appiconset/Icon-App-20x20@2x.png       |  Bin 0 -> 1283 bytes
 .../AppIcon.appiconset/Icon-App-20x20@3x.png       |  Bin 0 -> 1588 bytes
 .../AppIcon.appiconset/Icon-App-29x29@1x.png       |  Bin 0 -> 1025 bytes
 .../AppIcon.appiconset/Icon-App-29x29@2x.png       |  Bin 0 -> 1716 bytes
 .../AppIcon.appiconset/Icon-App-29x29@3x.png       |  Bin 0 -> 1920 bytes
 .../AppIcon.appiconset/Icon-App-40x40@1x.png       |  Bin 0 -> 1283 bytes
 .../AppIcon.appiconset/Icon-App-40x40@2x.png       |  Bin 0 -> 1895 bytes
 .../AppIcon.appiconset/Icon-App-40x40@3x.png       |  Bin 0 -> 2665 bytes
 .../AppIcon.appiconset/Icon-App-60x60@2x.png       |  Bin 0 -> 2665 bytes
 .../AppIcon.appiconset/Icon-App-60x60@3x.png       |  Bin 0 -> 3831 bytes
 .../AppIcon.appiconset/Icon-App-76x76@1x.png       |  Bin 0 -> 1888 bytes
 .../AppIcon.appiconset/Icon-App-76x76@2x.png       |  Bin 0 -> 3294 bytes
 .../AppIcon.appiconset/Icon-App-83.5x83.5@2x.png   |  Bin 0 -> 3612 bytes
 .../LaunchImage.imageset/LaunchImage.png           |  Bin 0 -> 68 bytes
 .../LaunchImage.imageset/LaunchImage@2x.png        |  Bin 0 -> 68 bytes
 .../LaunchImage.imageset/LaunchImage@3x.png        |  Bin 0 -> 68 bytes
 1032 files changed, 59994 insertions(+), 12240 deletions(-)

Upgrading engine...
Downloading Dart SDK from Flutter engine 3757390fa4b00d2d261bfdf5182d2e87c9113ff9...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 71.0M    0  400k    0     0   421k      0  0:02:52 --:--:--  0:02:52  421k
  4 71.0M    4 3454k    0     0  1747k      0  0:00:41  0:00:01  0:00:40 1747k
  9 71.0M    9 6718k    0     0  2280k      0  0:00:31  0:00:02  0:00:29 2280k
 13 71.0M   13  9.9M    0     0  2566k      0  0:00:28  0:00:03  0:00:25 2566k
 18 71.0M   18 13.2M    0     0  2736k      0  0:00:26  0:00:04  0:00:22 2735k
 23 71.0M   23 16.6M    0     0  2858k      0  0:00:25  0:00:05  0:00:20 3319k
 27 71.0M   27 19.8M    0     0  2925k      0  0:00:24  0:00:06  0:00:18 3393k
 30 71.0M   30 21.8M    0     0  2814k      0  0:00:25  0:00:07  0:00:18 3129k
 32 71.0M   32 23.2M    0     0  2646k      0  0:00:27  0:00:08  0:00:19 2708k
 34 71.0M   34 24.4M    0     0  2514k      0  0:00:28  0:00:09  0:00:19 2295k
 35 71.0M   35 25.1M    0     0  2347k      0  0:00:31  0:00:10  0:00:21 1742k
 36 71.0M   36 25.6M    0     0  2195k      0  0:00:33  0:00:11  0:00:22 1180k
 38 71.0M   38 27.5M    0     0  2177k      0  0:00:33  0:00:12  0:00:21 1163k
 40 71.0M   40 28.9M    0     0  2126k      0  0:00:34  0:00:13  0:00:21 1185k
 42 71.0M   42 29.9M    0     0  2049k      0  0:00:35  0:00:14  0:00:21 1128k
 43 71.0M   43 30.7M    0     0  1973k      0  0:00:36  0:00:15  0:00:21 1148k
 45 71.0M   45 31.9M    0     0  1932k      0  0:00:37  0:00:16  0:00:21 1304k
 49 71.0M   49 34.9M    0     0  1995k      0  0:00:36  0:00:17  0:00:19 1521k
 53 71.0M   53 38.2M    0     0  2068k      0  0:00:35  0:00:18  0:00:17 1905k
 58 71.0M   58 41.5M    0     0  2134k      0  0:00:34  0:00:19  0:00:15 2390k
 63 71.0M   63 44.8M    0     0  2194k      0  0:00:33  0:00:20  0:00:13 2900k
 67 71.0M   67 48.2M    0     0  2250k      0  0:00:32  0:00:21  0:00:11 3328k
 72 71.0M   72 51.6M    0     0  2302k      0  0:00:31  0:00:22  0:00:09 3403k
 75 71.0M   75 53.8M    0     0  2302k      0  0:00:31  0:00:23  0:00:08 3185k
 77 71.0M   77 55.2M    0     0  2266k      0  0:00:32  0:00:24  0:00:08 2790k
 79 71.0M   79 56.4M    0     0  2222k      0  0:00:32  0:00:26  0:00:06 2339k
 80 71.0M   80 57.0M    0     0  2167k      0  0:00:33  0:00:26  0:00:07 1804k
 81 71.0M   81 58.2M    0     0  2133k      0  0:00:34  0:00:27  0:00:07 1356k
 85 71.0M   85 60.9M    0     0  2152k      0  0:00:33  0:00:28  0:00:05 1439k
 88 71.0M   88 63.0M    0     0  2155k      0  0:00:33  0:00:29  0:00:04 1606k
 90 71.0M   90 64.6M    0     0  2139k      0  0:00:34  0:00:30  0:00:04 1703k
 93 71.0M   93 66.3M    0     0  2127k      0  0:00:34  0:00:31  0:00:03 1912k
 96 71.0M   96 68.5M    0     0  2131k      0  0:00:34  0:00:32  0:00:02 2117k
100 71.0M  100 71.0M    0     0  2163k      0  0:00:33  0:00:33 --:--:-- 2226k
Building flutter tool...
Downloading package sky_engine...                                   0.6s
Downloading common tools...                                         2.9s
Downloading darwin-x64 tools...                                    12.3s
Downloading android-arm-profile/darwin-x64 tools...                 1.0s
Downloading android-arm-release/darwin-x64 tools...                 1.0s
Downloading android-arm64-profile/darwin-x64 tools...               1.3s
Downloading android-arm64-release/darwin-x64 tools...               0.9s
Downloading android-arm-dynamic-profile/darwin-x64 tools...         0.9s
Downloading android-arm-dynamic-release/darwin-x64 tools...         0.8s
Downloading android-arm64-dynamic-profile/darwin-x64 tools...         1.0s
Downloading android-arm64-dynamic-release/darwin-x64 tools...         1.1s
Downloading android-x86 tools...                                    4.0s
Downloading android-x64 tools...                                    4.1s
Downloading android-arm tools...                                    1.9s
Downloading android-arm-profile tools...                            1.5s
Downloading android-arm-release tools...                            1.2s
Downloading android-arm64 tools...                                  1.9s
Downloading android-arm64-profile tools...                          1.7s
Downloading android-arm64-release tools...                          1.4s
Downloading android-arm-dynamic-profile tools...                    1.9s
Downloading android-arm-dynamic-release tools...                    1.5s
Downloading android-arm64-dynamic-profile tools...                  2.5s
Downloading android-arm64-dynamic-release tools...                  4.1s
Downloading ios tools...                                            9.0s
Downloading ios-profile tools...                                    7.6s
Downloading ios-release tools...                                    5.7s

Flutter 1.0.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5391447fae (3 months ago) • 2019-02-14 19:19:53 -0800
Engine • revision 3757390fa4
Tools • Dart 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.13.6 17G4015, locale en-LU)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.31.1)
[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Flutter SDK has now version 1.2.1.