I accidentally upgraded dart and flutter to the newest version but my code dont 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?
CodePudding user response:
You can downgrade flutter version by following below sequence.
- type 'flutter downgrade 1.22.6'
- Just type and command. 'flutter verion'
After 1,2 steps, you can see downgrading processing.
CodePudding user response:
there is a tool that helps to manage different versions of flutter FVM or you can use
flutter downgrade <version>
(example: flutter downgrade v1.2.1
)