I accidentally upgraded dart and flutter to the newest version but my code don't support null safety yet. Now I want to downgrade back to dart 1.x.
I tried flutter downgrade v1.2.1
but nothing changed. How can I downgrade back to dart 1.x?
I accidentally upgraded dart and flutter to the newest version but my code don't support null safety yet. Now I want to downgrade back to dart 1.x.
I tried flutter downgrade v1.2.1
but nothing changed. How can I downgrade back to dart 1.x?
You can downgrade flutter version by following below sequence.
After 1,2 steps, you can see downgrading processing.
If you want to downgrade flutter one the way which I use is to download the required SDK, unzip the folder and replace the existing flutter folder with the downloaded one.
Then restart the editor and you will the version you wanted.
Here are links for the Flutter SDK Release:
Windows https://flutter.dev/docs/development/tools/sdk/releases
MacOS https://flutter.dev/docs/development/tools/sdk/releases?tab=macos