[flutter tools] Revert desktop device name changes and print the category instead (#60395)

This commit is contained in:
James D. Lin
2020-06-30 11:28:02 -07:00
committed by GitHub
parent ca713557d7
commit cf8fbc363a
8 changed files with 9 additions and 9 deletions

View File

@@ -559,7 +559,7 @@ abstract class Device {
supportIndicator += ' ($type)';
}
table.add(<String>[
device.name,
'${device.name} (${device.category})',
device.id,
getNameForTargetPlatform(targetPlatform),
'${await device.sdkNameAndVersion}$supportIndicator',

View File

@@ -26,7 +26,7 @@ class LinuxDevice extends DesktopDevice {
bool isSupported() => true;
@override
String get name => 'Linux desktop';
String get name => 'Linux';
@override
Future<TargetPlatform> get targetPlatform async => TargetPlatform.linux_x64;

View File

@@ -24,7 +24,7 @@ class MacOSDevice extends DesktopDevice {
bool isSupported() => true;
@override
String get name => 'macOS desktop';
String get name => 'macOS';
@override
Future<TargetPlatform> get targetPlatform async => TargetPlatform.darwin_x64;

View File

@@ -27,7 +27,7 @@ class WindowsDevice extends DesktopDevice {
bool isSupported() => true;
@override
String get name => 'Windows desktop';
String get name => 'Windows';
@override
Future<TargetPlatform> get targetPlatform async => TargetPlatform.windows_x64;