flutterflutter-upgrade

Flutter upgrade command not working getting error 'You are not currently on a release branch'


Flutter upgrade command not working getting error 'You are not currently on a release branch. Use git to check out an official branch ('stable', 'beta', 'dev', or 'master')'


Solution

  • 1. Go to your flutter stored path from terminal

    cd path
    

    2. Hit command

    git checkout stable
    

    3. Hit command

    flutter upgrade