Reputation: 159
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!
Upvotes: 4
Views: 3749
Reputation: 159
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.
Upvotes: 4
Reputation: 1084
Try to clic this icon. I think it will force the hot reload when you change some code
Upvotes: 1