Add MediaQuery.textScaleFactor (#5936)

This feature is the implementation of an accessibility feature that changes the
size of text by a constant factor.

Fixes #5873
This commit is contained in:
Adam Barth
2016-09-20 09:14:48 -07:00
committed by GitHub
parent 3c467a899a
commit 17ac73890e
20 changed files with 370 additions and 220 deletions

View File

@@ -43,9 +43,9 @@ void checkIconColor(WidgetTester tester, String label, Color color) {
// way to find the menu item. I hope.
Element semantics = findElementOfExactWidgetTypeGoingUp(tester.element(find.text(label)), MergeSemantics);
expect(semantics, isNotNull);
Element asset = findElementOfExactWidgetTypeGoingDown(semantics, Text);
Text text = asset.widget;
expect(text.style.color, equals(color));
Element asset = findElementOfExactWidgetTypeGoingDown(semantics, RichText);
RichText richText = asset.widget;
expect(richText.text.style.color, equals(color));
}
void main() {