Come aggiornare a Flutter 2

05-03-2021 google android ios

Morivo dalla voglia di aggiornare e provare Flutter 2!!

Appena ho ricevuto la notifica ho letto il post di Google dove illusta i cambiamenti apportati.

Ho eseguito questi passaggi su MacOS X Catalina, ma dovrebbero essere simili sugli altri OS, anche se non ho ancora testato.

Ho aperto subito il terminale e lanciato flutter doctor, mi ha notificato l’aggiornamento:

progressify@mbpro16 ~ % flutter doctor
  ╔════════════════════════════════════════════════════════════════════════════╗
  ║ A new version of Flutter is available!                                     ║
  ║                                                                            ║
  ║ To update to the latest version, run "flutter upgrade".                    ║
  ╚════════════════════════════════════════════════════════════════════════════╝


Downloading android-arm-profile/darwin-x64 tools...                 2,3s
Downloading android-arm-release/darwin-x64 tools...                 1,7s
Downloading android-arm64-profile/darwin-x64 tools...               2,3s
Downloading android-arm64-release/darwin-x64 tools...               2,1s
Downloading android-x64-profile/darwin-x64 tools...                 2,9s
Downloading android-x64-release/darwin-x64 tools...                 1,6s
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.4, on Mac OS X 10.15.7 19H15 darwin-x64, locale it)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
[✓] Android Studio (version 4.0)
[!] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

Poi flutter upgrade:

progressify@mbpro16 ~ % flutter upgrade
Upgrading Flutter from /Users/progressify/sdk/flutter...
Downloading Dart SDK from Flutter engine 40441def692f444660a11e20fac37af9050245ab...
  % 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  194M    0  2785    0     0   3565      0 15:53:58 --:--:-- 15:53:58  3561
  1  194M    1 2462k    0     0  1520k      0  0:02:11  0:00:01  0:02:10 1519k
  2  194M    2 4158k    0     0  1596k      0  0:02:04  0:00:02  0:02:02 1595k
  3  194M    3 6286k    0     0  1742k      0  0:01:54  0:00:03  0:01:51 1742k
  3  194M    3 7934k    0     0  1720k      0  0:01:55  0:00:04  0:01:51 1719k
  5  194M    5 10.4M    0     0  1906k      0  0:01:44  0:00:05  0:01:39 2214k
 ...
 ...
 ...
 95  194M   95  186M    0     0  2180k      0  0:01:31  0:01:27  0:00:04 1189k
 97  194M   97  189M    0     0  2186k      0  0:01:31  0:01:28  0:00:03 1653k
 97  194M   97  190M    0     0  2178k      0  0:01:31  0:01:29  0:00:02 1777k
 98  194M   98  192M    0     0  2172k      0  0:01:31  0:01:30  0:00:01 1932k
 99  194M   99  193M    0     0  2160k      0  0:01:32  0:01:31  0:00:01 1840k
 99  194M   99  194M    0     0  2150k      0  0:01:32  0:01:32 --:--:-- 1631k
100  194M  100  194M    0     0  2151k      0  0:01:32  0:01:32 --:--:-- 1366k
Building flutter tool...

Upgrading engine...
Downloading android-arm-profile/darwin-x64 tools...              1.749ms
Downloading android-arm-release/darwin-x64 tools...              1.832ms
Downloading android-arm64-profile/darwin-x64 tools...            1.303ms
Downloading android-arm64-release/darwin-x64 tools...            1.376ms
Downloading android-x64-profile/darwin-x64 tools...              1.783ms
Downloading android-x64-release/darwin-x64 tools...              1.607ms
Downloading android-x86 tools...                                   12,2s
Downloading android-x64 tools...                                   11,1s
Downloading android-arm tools...                                    4,0s
Downloading android-arm-profile tools...                         1.823ms
Downloading android-arm-release tools...                            5,4s
Downloading android-arm64 tools...                                 10,1s
Downloading android-arm64-profile tools...                          3,2s
Downloading android-arm64-release tools...                       1.980ms
Downloading android-x64-profile tools...                         2.494ms
Downloading android-x64-release tools...                         1.884ms
Downloading android-x86-jit-release tools...                        3,4s
Downloading ios tools...                                           19,8s
Downloading ios-profile tools...                                   16,2s
Downloading ios-release tools...                                  115,3s
Downloading Web SDK...                                             16,0s
Downloading package sky_engine...                                  549ms
Downloading flutter_patched_sdk tools...                            6,8s
Downloading flutter_patched_sdk_product tools...                    7,1s
Downloading darwin-x64 tools...                                    19,8s
Downloading darwin-x64/font-subset tools...                      1.797ms

Flutter 2.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c5a4b4029c (16 hours ago) • 2021-03-04 09:47:48 -0800
Engine • revision 40441def69
Tools • Dart 2.12.0

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.7 19H15 darwin-x64, locale it)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
[✓] Connected device (1 available)

• No issues found!

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ Note: The Google Privacy Policy describes how data is handled in this      ║
  ║ service.                                                                   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ╚════════════════════════════════════════════════════════════════════════════╝

Ed infine, per verificare che tutto sia andato a buon fine ho lanciato nuovamente flutter doctor:

progressify@mbpro16 ~ % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.1, on Mac OS X 10.15.7 19H15 darwin-x64, locale it)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.2)
[✓] Connected device (1 available)

• No issues found!

E tu? Hai già aggiornato a Flutter 2?

AP

 

Autore

Antonio Porcelli

Antonio Porcelli

@progressify


Se non visualizzi il blocco dei commenti è perchè non hai accettato i cookies.
Cancella le preferenze del tuo browser per questo sito, aggiorna la pagina ed accetta i cookies.