Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to enable hot reload on iOS and Android simulators simultaneously?

I've set up flutter with IntelliJ and got to the point where demo app is running on both simulators, however hot reload seems to be only updating one of them, is it possible to update both at the same time? Here is example of the issue in action

enter image description here

like image 665
Ilja Avatar asked Mar 08 '23 07:03

Ilja


2 Answers

I suppose this happens only when run from IDE. Try starting both simulators and run app from command line interface.

To run app from terminal on all simulators: flutter run -d all

For hot reload press r key on keyboard

like image 75
Hemanth Raj Avatar answered Mar 09 '23 22:03

Hemanth Raj


For visual studio code users ; you can create 2 launch task. Launch the first one on a device, and the second on the other one.

Debug will work simultaneously on both. Even breakpoints.

like image 37
Rémi Rousselet Avatar answered Mar 09 '23 21:03

Rémi Rousselet