Flutter is evolving very fast as the Flutter Google Developers are working hard to make it better and better. Flutter has released its stable version and they are growing very fast among mobile developers because of Flutter platform independent usability. Flutter gives us a command flutter upgrade which updates our both Flutter SDK and flutter project to new released version. This command first check your Flutter SDK version then if new version is available it starts to upgrading the SDK and flutter project. So in this tutorial we would learn about How to Upgrade Flutter Project and Flutter SDK to Latest Version in Windows, MAC and Linux.
Contents in this project How to Upgrade Flutter Project and Flutter SDK to Latest Version in Windows, MAC & Linux:
1. Open your flutter project root folder containing all the Flutter project files like i did in below screenshot & execute flutter upgrade command . Please make sure you are connected to internet connection before executing command because new version will download from Internet.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
F:\Flutter_Projects\app>flutter upgrade Upgrading Flutter from F:\Android_Setup\flutter_sdk... From https://github.com/flutter/flutter 2d2a1ffec..cc949a8e8 stable -> origin/stable 2d2a1ffec..cc949a8e8 beta -> origin/beta ce45c2d3e..e70236e36 dev -> origin/dev * [new branch] dnfield-patch-1 -> origin/dnfield-patch-1 * [new branch] hot_restart_lowercase_r -> origin/hot_restart_lowercase _r ddb06331b..fa7340a32 master -> origin/master * [new branch] revert-40634-goldenTriageBenchmark -> origin/revert-406 34-goldenTriageBenchmark * [new branch] revert-40726-roll_branch -> origin/revert-40726-roll_br anch * [new branch] revert-40995-revert-40925-androidx_default -> origin/re vert-40995-revert-40925-androidx_default * [new branch] revert-41780-fix_build -> origin/revert-41780-fix_buil d * [new branch] sjindel.elf -> origin/sjindel.elf 2d2a1ffec..cc949a8e8 v1.9.1-hotfixes -> origin/v1.9.1-hotfixes * [new branch] verbose-put -> origin/verbose-put * [new tag] v1.10.2 -> v1.10.2 * [new tag] v1.10.7 -> v1.10.7 * [new tag] v1.9.1+hotfix.4 -> v1.9.1+hotfix.4 * [new tag] v1.10.3 -> v1.10.3 * [new tag] v1.10.4 -> v1.10.4 * [new tag] v1.10.5 -> v1.10.5 * [new tag] v1.10.6 -> v1.10.6 * [new tag] v1.9.1+hotfix.3 -> v1.9.1+hotfix.3 Updating c382b8e99..cc949a8e8 16 files changed, 435 insertions(+), 308 deletions(-) Building flutter tool... Running pub upgrade... Upgrading engine... Flutter 1.9.1+hotfix.4 • channel stable • https://github.com/flutter/flutter .git Framework • revision cc949a8e8b (5 days ago) • 2019-09-27 15:04:59 -0700 Engine • revision b863200c37 Tools • Dart 2.5.0 Running flutter doctor... Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.9.1+hotfix.4, on Microsoft Windows [Version 6. 3.9600], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK version 29.0. 2) [!] Android Studio (version 3.5) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality. [√] VS Code (version 1.38.1) [√] Connected device (1 available) ! Doctor found issues in 1 category. F:\Flutter_Projects\app> |
Now your flutter project and SDK is updated to latest stable version of Flutter 🙂 .