Im trying to downgrade to 3.0.5 with terminal and typed
git reset --hard e85ea0e79c6d894c120cda4ee8ee10fe6745e187
but error says
fatal: not a git repository (or any of the parent directories): .git
how can I solve??
Stop installing and uninstalling versions! Get yourself an install of package:fvm, aka https://pub.dev/packages/fvm, aka http://fvm.app. You can have per-project selection of any flutter version that has been published, as well as keep the latest version as your global default.
There a documentation to switch to spesific flutter version here. No need for Third package/library.
Find your desired Flutter version on the Flutter SDK archive.
Navigate to the Flutter SDK: cd /path/to/flutter
Tip! You can find the Flutter SDK's path using
flutter doctor --verbose.
git checkout <Flutter version>After following the step, if you try to run flutter doctor --version you will be informed that you are on the [user-branch] channel.
Check the available channel: flutter channel
Choose the channel: flutter channel <Channel name>