Implemented Dark Mode for Android (#25525) (#26605)

This commit is contained in:
Matt Carroll
2019-02-06 16:52:47 -08:00
committed by GitHub
parent 0aee2f5004
commit a13fdbcf32
9 changed files with 406 additions and 54 deletions

View File

@@ -136,20 +136,6 @@ void main() {
);
});
testWidgets('TestWindow can fake semantics enabled', (WidgetTester tester) async {
verifyThatTestWindowCanFakeProperty<bool>(
tester: tester,
realValue: ui.window.semanticsEnabled,
fakeValue: !ui.window.semanticsEnabled,
propertyRetriever: () {
return WidgetsBinding.instance.window.semanticsEnabled;
},
propertyFaker: (TestWidgetsFlutterBinding binding, bool fakeValue) {
binding.window.semanticsEnabledTestValue = fakeValue;
}
);
});
testWidgets('TestWindow can fake accessibility features', (WidgetTester tester) async {
verifyThatTestWindowCanFakeProperty<AccessibilityFeatures>(
tester: tester,