I recently started learning Flutter. I started with Visual studio code and everything worked perfectly.
I decided to try Android Studio to check if it is smoother but I am facing an issue with Hot Reload. When I give hot reload, this is the output.
It shows that 1 library got reloaded but nothing changes in the emulator. However hot restart works...
Can someone explain what is wrong here? Thank you!
Yeah, I got the answer. To use hot reload/hot restart, you need to have a stateless or stateful widget with a build method inside it. Hot reload checks for changes in the build function to make the changes. My code didn't have a stateless widget and hence it didn't work.
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