[flutter tools] Revert desktop device name changes and print the category instead (#60395)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user