Support disabling animations in the CLI (#132239)

This commit is contained in:
Ian Hickson
2023-08-22 20:35:22 -07:00
committed by GitHub
parent d8470f713c
commit 487bd69078
15 changed files with 131 additions and 27 deletions

View File

@@ -448,6 +448,7 @@ class TestFeatureFlags implements FeatureFlags {
this.isFuchsiaEnabled = false,
this.areCustomDevicesEnabled = false,
this.isFlutterWebWasmEnabled = false,
this.isCliAnimationEnabled = true,
});
@override
@@ -477,6 +478,9 @@ class TestFeatureFlags implements FeatureFlags {
@override
final bool isFlutterWebWasmEnabled;
@override
final bool isCliAnimationEnabled;
@override
bool isEnabled(Feature feature) {
switch (feature) {
@@ -496,6 +500,8 @@ class TestFeatureFlags implements FeatureFlags {
return isFuchsiaEnabled;
case flutterCustomDevicesFeature:
return areCustomDevicesEnabled;
case cliAnimation:
return isCliAnimationEnabled;
}
return false;
}