I am following the Get Started tutorial.
I can install everything, flutter doctor returns all checkmarks but in the end there is a message:
This workaround worked for me when loosing the connection:
and from there it worked again!
This just to help to debug the loos of connection bug. I have also observed that it begins just after the "stop debugging" command from Visual Studio Code.