Skip to content

Conversation

@loic-sharma
Copy link
Member

@loic-sharma loic-sharma commented Aug 30, 2024

Explains how to switch to a specific Flutter version.

This will be used by the Flutter tool's error message when a user attempts to flutter downgrade but has never used the flutter upgrade command: flutter/flutter#154434

Presubmit checklist

  • This PR is marked as draft with an explanation if not meant to land until a future stable release.
  • This PR doesn’t contain automatically generated corrections (Grammarly or similar).
  • This PR follows the Google Developer Documentation Style Guidelines — for example, it doesn’t use i.e. or e.g., and it avoids I and we (first person).
  • This PR uses semantic line breaks of 80 characters or fewer.

@loic-sharma loic-sharma requested review from a team, parlough and sfshaza2 as code owners August 30, 2024 17:51
@flutter-website-bot
Copy link
Collaborator

flutter-website-bot commented Aug 30, 2024

Visit the preview URL for this PR (updated for commit edfcc1f):

https://flutter-docs-prod--pr11098-switch-specific-7fsiy258.web.app

Copy link
Contributor

@andrewkolos andrewkolos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from the flutter tool side of things

Copy link
Contributor

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Thanks, @loic-sharma!

@sfshaza2 sfshaza2 merged commit 0fd20aa into flutter:main Aug 30, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 4, 2024
`flutter downgrade` fails if you haven't used `flutter upgrade`:

```
$ flutter downgrade
There is no previously recorded version for channel "stable".
```

It's not clear what actions a user should take from this error message. Here's the new error message:

```
$ flutter downgrade
It looks like you haven't run "flutter upgrade" on channel "stable".

"flutter downgrade" undoes the last "flutter upgrade".

To switch to a specific Flutter version, see: https://flutter.dev/to/switch-flutter-version
```

Depends on flutter/website#11098
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants