1
0
mirror of https://github.com/flutter/samples.git synced 2026-03-27 14:51:45 +00:00

Upgrade null safety example (#748)

This commit is contained in:
Michael Thomsen
2021-03-03 22:01:08 +01:00
committed by GitHub
parent 8c1cd0b049
commit b0e8686fe9
144 changed files with 33 additions and 35 deletions

View File

@@ -0,0 +1,14 @@
// This is a basic widget test that tests just the good app code.
import 'package:flutter_test/flutter_test.dart';
import 'package:null_safe_app/goodapp.dart';
void main() {
testWidgets('App smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(GoodMyApp());
// Verify that we have a forecast, or a managed failure.
expect(find.textContaining('Temperature'), findsOneWidget);
});
}