Set highContrast value from AccessibilityFeatures into MediaQueryData (#48811)

This commit is contained in:
Miguel Beltran
2020-02-26 22:36:02 +01:00
committed by GitHub
parent 9da15d8f2e
commit 7ff3a50fe7
3 changed files with 21 additions and 1 deletions

View File

@@ -256,6 +256,7 @@ class FakeAccessibilityFeatures implements AccessibilityFeatures {
this.disableAnimations = false,
this.boldText = false,
this.reduceMotion = false,
this.highContrast = false,
});
@override
@@ -273,6 +274,9 @@ class FakeAccessibilityFeatures implements AccessibilityFeatures {
@override
final bool reduceMotion;
@override
final bool highContrast;
/// This gives us some grace time when the dart:ui side adds something to
/// [AccessibilityFeatures], and makes things easier when we do rolls to
/// give us time to catch up.