mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
tweak the device description for emulators (#6214)
This commit is contained in:
parent
74804e6f1d
commit
b00e6cda66
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user