MediaQuery.of shouldn't give a default return value (#9596)
This commit is contained in:
@@ -14,7 +14,7 @@ void main() {
|
||||
// We press the "1" and the "2" buttons and check that the display
|
||||
// reads "12".
|
||||
testWidgets('Flutter calculator app smoke test', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(const CalculatorDemo());
|
||||
await tester.pumpWidget(new MaterialApp(home: const CalculatorDemo()));
|
||||
|
||||
final Finder oneButton = find.widgetWithText(InkResponse, '1');
|
||||
expect(oneButton, findsOneWidget);
|
||||
|
||||
Reference in New Issue
Block a user