Revert "show web-server in flutter devices (#121373)" (#121532)

Revert "[flutter_tools] show web-server in flutter devices"
This commit is contained in:
Christopher Fujino
2023-02-27 10:44:09 -08:00
committed by GitHub
parent fd65fd1b16
commit 5c334d10df
3 changed files with 32 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ abstract class ChromiumDevice extends Device {
Future<String?> get emulatorId async => null;
@override
bool isSupported() => chromeLauncher.canFindExecutable();
bool isSupported() => chromeLauncher.canFindExecutable();
@override
DevicePortForwarder? get portForwarder => const NoOpDevicePortForwarder();
@@ -357,7 +357,8 @@ class WebDevices extends PollingDeviceDiscovery {
}
final MicrosoftEdgeDevice? edgeDevice = _edgeDevice;
return <Device>[
_webServerDevice,
if (WebServerDevice.showWebServerDevice)
_webServerDevice,
if (_chromeDevice.isSupported())
_chromeDevice,
if (edgeDevice != null && await edgeDevice._meetsVersionConstraint())
@@ -391,6 +392,7 @@ class WebServerDevice extends Device {
);
static const String kWebServerDeviceId = 'web-server';
static bool showWebServerDevice = false;
final Logger _logger;