How to run your flutter app on multiple emulator devices using vscode

I am a full stack developer from Lagos, Nigeria. I am passionate about web development and ecosystem. I love learning, building and exploring tools.
Search for a command to run...

I am a full stack developer from Lagos, Nigeria. I am passionate about web development and ecosystem. I love learning, building and exploring tools.
No comments yet. Be the first to comment.
Picture this: You're building a Flutter app for a food delivery service. Your app needs to track user analytics, manage configuration settings, handle API calls, and maintain a logging system. Without proper architecture, you might end up creating mu...

Introduction If you've ever built a moderately complex Flutter app, you've probably hit that moment where everything starts to feel... messy. Maybe your state management is tangled, your service classes are doing too much, or you're duplicating logic...

It's 2020 and the rate in which Flutter is trending is increasing exponentially, and learning can be difficult if people are not been pointed to the right resources. With the below-curated list of the youtube channel, I believe it will help flutter d...

One of the current challenges as of the time I'm writing this article is using firebase in flutter application, using firebase in your flutter application at default return error. Firebase returns different errors base on the context of what you are ...

Flutter is a cross-platform mobile framework i.e its support for Android, iOS, macOS, Window, Linux e.t.c, developing flutter is so fascinating that you get to write once and run on all platforms. in this post, I will be showing how to run more than one emulator concurrently using Visual studio code, by default you can only run a single emulator at a time on a project. Thanks to super-fast hot reload and restart feature of flutter which makes development experience faster and better. But it would have been better if you can be testing/debugging your application as you are developing on all platform's devices without you have to wait for one device.
NB: I won't be showing how to create emulator devices, follow below link on how to create the emulator
How to create Android and iOS emulator device .
Make sure all the devices are launched.i.e all devices for iOS and Android.
Get ID for all your devices, to get the device id run flutter devices on your terminal to get your device id. [screenshot below]


{
"name": "iPad Pro",
"request": "launch",
"type": "dart",
"deviceId": "CE96E50B-A047-40D9-9921-1359CA2CF231"
}
NB: name is the profile name i.e device name although it can be any name. below is the sample configuration setting for my flutter app
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Flutter",
"request": "launch",
"type": "dart"
},
{
"name": "Android",
"request": "launch",
"type": "dart",
"deviceId": "emulator-5554"
},
{
"name": "iPhone",
"request": "launch",
"type": "dart",
"deviceId": "iPhone"
},
{
"name": "iPad Pro",
"request": "launch",
"type": "dart",
"deviceId": "CE96E50B-A047-40D9-9921-1359CA2CF231"
}
],
"compounds": [
{
"name": "All Devices",
"configurations": ["Android", "iPhone", "iPad Pro"]
}
]
}
