Your flutter checkout has local changes that would be erased by upgrading. If you want to keep these changes, it is recommended that you stash them via “git stash” or else commit the changes to a local branch. If it is okay to remove local changes, then re-run this command with --force.
点击右上角flutter 更新假如失败 可尝试
0
在Android Studioterminal或CMD中打开终端并粘贴 一直等待即可
flutter upgrade --force