Commit b00e6cda authored by Devon Carew's avatar Devon Carew Committed by GitHub

tweak the device description for emulators (#6214)

parent 74804e6f
...@@ -249,8 +249,10 @@ abstract class Device { ...@@ -249,8 +249,10 @@ abstract class Device {
return devices.map((Device device) { return devices.map((Device device) {
String supportIndicator = device.isSupported() ? '' : ' (unsupported)'; String supportIndicator = device.isSupported() ? '' : ' (unsupported)';
if (device.isLocalEmulator) if (device.isLocalEmulator) {
supportIndicator += ' • simulator'; String type = device.platform == TargetPlatform.ios ? 'simulator' : 'emulator';
supportIndicator += ' ($type)';
}
return '${device.name.padRight(nameWidth)} • ' return '${device.name.padRight(nameWidth)} • '
'${device.id.padRight(idWidth)} • ' '${device.id.padRight(idWidth)} • '
'${getNameForTargetPlatform(device.platform)}$supportIndicator'; '${getNameForTargetPlatform(device.platform)}$supportIndicator';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment