tweak the device description for emulators (#6214)

This commit is contained in:
Devon Carew 2016-10-04 20:29:10 -07:00 committed by GitHub
parent 74804e6f1d
commit b00e6cda66

View File

@ -249,8 +249,10 @@ abstract class Device {
return devices.map((Device device) {
String supportIndicator = device.isSupported() ? '' : ' (unsupported)';
if (device.isLocalEmulator)
supportIndicator += ' • simulator';
if (device.isLocalEmulator) {
String type = device.platform == TargetPlatform.ios ? 'simulator' : 'emulator';
supportIndicator += ' ($type)';
}
return '${device.name.padRight(nameWidth)}'
'${device.id.padRight(idWidth)}'
'${getNameForTargetPlatform(device.platform)}$supportIndicator';