I am working on a flutter app that is about 70 percent complete. I want to run it on multiple simulators because one of the functionalities is sending data between phones. My question is, can I do this? I am using mostly android but would like the app to be cross-platform. Thanks!
1 Answer
From the terminal, launch the emulators you want:
flutter emulators --launch <emulator id>
(to get the emulators IDs, run flutter emulator, and they'll be listed on the left hand side)
then from the terminal:
flutter run -d all
This command will run your app in all the running emulators. To use Hot Reload, just type 'r' in the terminal (flutter will show you the commands that you need).
3 Comments
Matt123
Thank you @OsaXma! Much appreciated!
osaxma
@VCezar check this answer here VSCode and flutter, how to connect multiple devices?