in the terminal window, you need to run “$ flutter clean” in the project root, and “$ flutter pub upgrade”, and possibly delete the Pods/ folder and get everything reset from scratch . Also might need to use “file/invalidate cache” (in android studio).
Read moreHow do I downgrade my dart version?
Inorder for a proper downgrade to any version.
Read more