diff --git a/firebase.json b/firebase.json index 1bfb1b5e106..c991b995282 100644 --- a/firebase.json +++ b/firebase.json @@ -709,6 +709,7 @@ { "source": "/to/review-gradle-config", "destination": "/deployment/android#review-the-gradle-build-configuration", "type": 301 }, { "source": "/to/save-layer-perf", "destination": "/perf/best-practices#use-savelayer-thoughtfully", "type": 301 }, { "source": "/to/state-management-sample", "destination": "/data-and-backend/state-mgmt/simple", "type": 301 }, + { "source": "/to/switch-flutter-version", "destination": "/release/upgrade/#switching-to-a-specific-flutter-version", "type": 301 }, { "source": "/to/track-widget-creation", "destination": "/tools/devtools/inspector#track-widget-creation", "type": 301 }, { "source": "/to/troubleshoot-devices", "destination": "/get-started/install", "type": 301 }, { "source": "/to/unbounded-constraints", "destination": "/ui/layout/constraints#unbounded", "type": 301 }, diff --git a/src/content/release/upgrade.md b/src/content/release/upgrade.md index 7a646ad2ea5..b7cd7143cd5 100644 --- a/src/content/release/upgrade.md +++ b/src/content/release/upgrade.md @@ -101,10 +101,28 @@ $ flutter channel beta $ flutter upgrade ``` -:::note -If you need a specific version of the Flutter SDK, -you can download it from the [Flutter SDK archive][]. -::: + +## Switching to a specific Flutter version + +To switch to a specific Flutter version: + +1. Find your desired **Flutter version** on the [Flutter SDK archive][]. + +1. Navigate to the Flutter SDK: + + ```console + $ cd /path/to/flutter + ``` + + :::tip + You can find the Flutter SDK's path using `flutter doctor --verbose`. + ::: + +1. Use `git checkout` to switch to your desired **Flutter version**: + + ```console + $ git checkout + ``` ## Upgrading packages