Long Khoa
Long Khoa

Reputation: 3

Flutter hot reload not working in android studio

When I comment on New Text ('41 ') and then I press HOT RELOAD but it doesn't change, I've pressed a lot it hasn't changed, then I press the RUN button then it works fine

Anyone got the same problem?

enter image description here

Upvotes: 0

Views: 576

Answers (1)

RGR752
RGR752

Reputation: 26

Make sure you are using a stateless or stateful widget, the hot reload/refresh only works when you are dealing with state.

If you just run your main class without any state Widget, you'll have to run the application each time that you want to test a new modification.

Upvotes: 1

Related Questions