Provide a way to override global InheritedWidgets (#14348)
For example, so that the gallery can override the media query globally.
This commit is contained in:
@@ -69,7 +69,7 @@ void main() {
|
||||
expect(newTextSize, equals(origTextSize));
|
||||
|
||||
// Scroll to the bottom of the menu.
|
||||
await tester.drag(find.text('Small'), const Offset(0.0, -450.0));
|
||||
await tester.drag(find.text('Small'), const Offset(0.0, -1000.0));
|
||||
await tester.pump();
|
||||
await tester.pump(const Duration(seconds: 1)); // Wait until it's changed.
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ Future<Null> runSmokeTest(WidgetTester tester) async {
|
||||
await tester.pump(const Duration(seconds: 1)); // Wait until it's changed.
|
||||
|
||||
// Scroll the 'Send feedback' item into view.
|
||||
await tester.drag(find.text('Small'), const Offset(0.0, -450.0));
|
||||
await tester.drag(find.text('Small'), const Offset(0.0, -1000.0));
|
||||
await tester.pump();
|
||||
await tester.pump(const Duration(seconds: 1)); // Wait until it's changed.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user