UPDATE: I tried with another clean new project. Hot reload works fine.
Every time I perform a hot reload on my VS Code, the hot reload gets stuck with the following message. Anyone knows the problem?
These are the things that I have done.
These are my specs:
Debug console:
Launching lib/main.dart on iPad Pro (9.7-inch) in debug mode...
lib/main.dart:1
Xcode build done. 82.4s
Connecting to VM Service at ws://127.0.0.1:51095/_Dfl55VaXyE=/ws
To perform a hot restart, run the Flutter: Hot Restart command from the Command Palette, or press Ctrl + Shift + F5 ( Cmd + Shift + F5 on macOS).
Show activity on this post. Then, after being at Flutter section, look for "App Execution" and there you have to uncheck the box "Perform hot reload on save". Then click OK and that's it.
1. Hot Reload allows us to see the reflected change after bug fixes, building User interfaces and even adding certain features to the app without running your application afresh over and over again. Hot restart destroys the preserved State value and set them to their default.
I was try open DevTools in the browser and press Hot reload button and it's working!
if you are using Listview.builder or Grideview.builder then comment it out or remove that code block.
sometimes it happens because of the unbounded height problem of listview.builder and hot reload get stuck and fail to compile the code.
Not sure which Flutter version you were using but you could be running into a case of https://github.com/flutter/flutter/issues/84347 which is related to isolates getting somehow stuck during hot reload.
I don't know the audioplayers
library but I assume it uses an isolate in the background.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With