MediaQuery.of shouldn't give a default return value (#9596)

This commit is contained in:
Ian Hickson
2017-04-27 15:02:59 -07:00
committed by GitHub
parent b432af51fd
commit 11fa80bb78
20 changed files with 1145 additions and 915 deletions

View File

@@ -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);