Revert "Use FlutterFeatures to configure web and desktop devices (#36465)" (#36654)

This reverts commit bd52a78c71.
This commit is contained in:
Jonah Williams
2019-07-21 21:47:43 -07:00
committed by GitHub
parent 1b2e14c9a1
commit 8eae2dfb92
37 changed files with 371 additions and 505 deletions

View File

@@ -4,8 +4,8 @@
import '../base/context.dart';
import '../base/platform.dart';
import '../desktop.dart';
import '../doctor.dart';
import '../features.dart';
/// The [WindowsWorkflow] instance.
LinuxWorkflow get linuxWorkflow => context.get<LinuxWorkflow>();
@@ -18,13 +18,13 @@ class LinuxWorkflow implements Workflow {
const LinuxWorkflow();
@override
bool get appliesToHostPlatform => platform.isLinux && featureFlags.isLinuxEnabled;
bool get appliesToHostPlatform => platform.isLinux;
@override
bool get canLaunchDevices => platform.isLinux && featureFlags.isLinuxEnabled;
bool get canLaunchDevices => platform.isLinux && flutterDesktopEnabled;
@override
bool get canListDevices => platform.isLinux && featureFlags.isLinuxEnabled;
bool get canListDevices => platform.isLinux && flutterDesktopEnabled;
@override
bool get canListEmulators => false;