tweak the device description for emulators (#6214)
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user