CodePudding user response:
Hi there you need to add the config to flutter using the following command from your terminal.
flutter config --enable-windows-desktop
flutter config --enable-"platform"-desktop #this can be used for linux etc as well.
Once you have done this restart Android Studio.